- Patch #133431 by alexis: #redirect won't work with user registration.

6.x
Dries Buytaert 2007-04-09 13:45:30 +00:00
parent 96c3009178
commit 15d739a504
1 changed files with 1 additions and 1 deletions

View File

@ -1388,7 +1388,7 @@ 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));
drupal_goto();
return '';
}
else if ($account->status || $notify) {
// Create new user account, no administrator approval required.