Change password button should be displayed according to the setting of the user who is been viewed, not the user who is viewing(currently logged in)
This commit is contained in:
+1
-1
@@ -283,7 +283,7 @@
|
||||
echo "</td></tr></table>";
|
||||
|
||||
$internalpassword = false;
|
||||
if (is_internal_auth($USER->auth) or (!empty($CFG->{'auth_'.$USER->auth.'_stdchangepassword'}))) {
|
||||
if (is_internal_auth($user->auth) or (!empty($CFG->{'auth_'.$user->auth.'_stdchangepassword'}))) {
|
||||
if (empty($CFG->loginhttps)) {
|
||||
$internalpassword = "$CFG->wwwroot/login/change_password.php";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user