Skip to content
Snippets Groups Projects
Commit 0f973eeb authored by JediKev's avatar JediKev
Browse files

issue: User Password Reset

This addresses issue 4030 where if the Allow Password Reset setting for
Agents is disabled it will also affect Users. That means Users will not be
able to reset their password. This updates the User’s password reset page
to ignore that setting so that User’s will still be able to reset their
password.
parent acac3707
No related branches found
No related tags found
No related merge requests found
......@@ -73,12 +73,8 @@ elseif ($_GET['token']) {
else
Http::redirect('index.php');
}
elseif ($cfg->allowPasswordReset()) {
$banner = __('Enter your username or email address below');
}
else {
$_SESSION['_staff']['auth']['msg']=__('Password resets are disabled');
return header('Location: index.php');
$banner = __('Enter your username or email address below');
}
$nav = new UserNav();
......
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