diff --git a/modules/user/user.module b/modules/user/user.module index 38f18754d94..87abbdbb75a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1263,6 +1263,8 @@ function user_register_submit($form_id, $form_values) { $body = _user_mail_text('welcome_body', $variables); drupal_mail('user-register-welcome', $mail, $subject, $body, $from); user_authenticate($account->name, trim($pass)); + $edit = array(); + user_module_invoke('login', $edit, $account); return ''; } else if ($account->status || $notify) {