diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-14 17:38:08 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-14 17:38:08 +0000 |
commit | 439942db98c2d11fd9101d05d03267fe8f60031f (patch) | |
tree | ab24c84c058b57c3df737abd6e15e762936adf27 | |
parent | eb618ffb75ca02ef5b44ab84fadf17e91ad49dde (diff) | |
download | brdo-439942db98c2d11fd9101d05d03267fe8f60031f.tar.gz brdo-439942db98c2d11fd9101d05d03267fe8f60031f.tar.bz2 |
#168261 by mvc: redirect registered users back to the front page if admin approval is required, so their user account page is not directly accessible after registration
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 9d1c7ff33..5581bef85 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2151,6 +2151,8 @@ function user_register_submit($form, &$form_state) { // Create new user account, administrator approval required. _user_mail_notify('register_pending_approval', $account); drupal_set_message(t('Thank you for applying for an account. Your account is currently pending approval by the site administrator.<br />In the meantime, your password and further instructions have been sent to your e-mail address.')); + $form_state['redirect'] = ''; + return; } } |