diff --git a/app/controllers/new_password.php b/app/controllers/new_password.php index e957f1dd725592e3d03662bb7367a651edeafb4a..5132c4804f2bb4b27d120e09054dcf3847a9f6b7 100644 --- a/app/controllers/new_password.php +++ b/app/controllers/new_password.php @@ -13,9 +13,7 @@ class NewPasswordController extends StudipController { parent::before_filter($action, $args); - if (!(Config::get()->ENABLE_REQUEST_NEW_PASSWORD_BY_USER - && in_array('Standard', $GLOBALS['STUDIP_AUTH_PLUGIN']) - )) { + if (!in_array('Standard', $GLOBALS['STUDIP_AUTH_PLUGIN'])) { PageLayout::postError(_("Das Anfordern eines neuen Passwortes durch den Benutzer ist in dieser Stud.IP-Installation nicht möglich.")); $this->redirect('start'); return; @@ -97,7 +95,7 @@ class NewPasswordController extends StudipController $user_id = $token->user_id; } else { PageLayout::postError('Der Link ist abgelaufen oder wurde bereits verwendet. Fordern sie eine neue Mail an!'); - $this->redirect('start'); + $this->redirect('new_password'); return; }