Commit 439942db authored by Gábor Hojtsy's avatar Gábor Hojtsy

#168261 by mvc: redirect registered users back to the front page if admin...

#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
parent eb618ffb
...@@ -2151,6 +2151,8 @@ function user_register_submit($form, &$form_state) { ...@@ -2151,6 +2151,8 @@ function user_register_submit($form, &$form_state) {
// Create new user account, administrator approval required. // Create new user account, administrator approval required.
_user_mail_notify('register_pending_approval', $account); _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.')); 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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment