Skip to content

Commit

Permalink
Add redirect when can't create an account
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Jan 13, 2014
1 parent 7239e40 commit 3d55a0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raven.module
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ function user_raven_login_register($name) {
switch (variable_get('user_register')) {
case USER_REGISTER_ADMINISTRATORS_ONLY:
drupal_set_message(t('Only site administrators can create accounts.'), 'error');
return;
drupal_goto(variable_get('raven_login_fail_redirect'));
break;
case USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL:
drupal_set_message(t('Thank you for applying for an account. Your account is currently pending approval by the site administrator.'));
$status = 0;
Expand Down

0 comments on commit 3d55a0a

Please sign in to comment.