Change password button displayed according to user's actual authentication method, not
default setting.
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@
|
||||
|
||||
|
||||
$internalpassword = false;
|
||||
if (is_internal_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