#138117 by gordon. Invoke hook_user('login') on registrations without email verification.
parent
e995ff95e9
commit
bfebd482f1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue