Skip to content
Snippets Groups Projects
Commit ffd129c4 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Till Glöggler
Browse files

allow access if ENABLE_REQUEST_NEW_PASSWORD_BY_USER is false, fixes #513

Closes #513

Merge request studip/studip!1019
parent fdb60146
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment