Skip to content
Snippets Groups Projects
Commit d342acf7 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

allow access if ENABLE_REQUEST_NEW_PASSWORD_BY_USER is false, fixes #513

Closes #513

Merge request studip/studip!1019
parent 23533146
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,7 @@ class NewPasswordController extends StudipController ...@@ -13,9 +13,7 @@ class NewPasswordController extends StudipController
{ {
parent::before_filter($action, $args); parent::before_filter($action, $args);
if (!(Config::get()->ENABLE_REQUEST_NEW_PASSWORD_BY_USER if (!in_array('Standard', $GLOBALS['STUDIP_AUTH_PLUGIN'])) {
&& 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.")); PageLayout::postError(_("Das Anfordern eines neuen Passwortes durch den Benutzer ist in dieser Stud.IP-Installation nicht möglich."));
$this->redirect('start'); $this->redirect('start');
return; return;
...@@ -97,7 +95,7 @@ class NewPasswordController extends StudipController ...@@ -97,7 +95,7 @@ class NewPasswordController extends StudipController
$user_id = $token->user_id; $user_id = $token->user_id;
} else { } else {
PageLayout::postError('Der Link ist abgelaufen oder wurde bereits verwendet. Fordern sie eine neue Mail an!'); PageLayout::postError('Der Link ist abgelaufen oder wurde bereits verwendet. Fordern sie eine neue Mail an!');
$this->redirect('start'); $this->redirect('new_password');
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment