mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
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:
parent
48dbefcd7d
commit
9896df48fd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user