#138117 by gordon. Invoke hook_user('login') on registrations without email verification.

5.x
Neil Drumm 2007-07-12 06:40:04 +00:00
parent e995ff95e9
commit bfebd482f1
1 changed files with 2 additions and 0 deletions

View File

@ -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) {