summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 4ddedd140..a47a7b8b7 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -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.