From: paca70 Date: Sun, 10 Oct 2004 06:26:29 +0000 (+0000) Subject: Allow password changes with standard password change dialog if X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e09ecb06045672bb730f9c7a6da6d3ddc12d1994;p=moodle.git Allow password changes with standard password change dialog if $CFG->{'auth_'.$USER->auth.'_stdchangepassword'} is true. --- diff --git a/user/view.php b/user/view.php index c95c4728b9..f94557c359 100644 --- a/user/view.php +++ b/user/view.php @@ -222,7 +222,7 @@ $internalpassword = false; - if (is_internal_auth()) { + if (is_internal_auth() or ( $CFG->{'auth_'.$USER->auth.'_stdchangepassword'} and $CFG->{'auth_'.$USER->auth.'_stdchangepassword'} == 1)) { if(empty($CFG->loginhttps)) { $internalpassword = "$CFG->wwwroot/login/change_password.php"; } else { @@ -233,12 +233,12 @@ // Print other functions echo "
"; if ($currentuser and !isguest()) { - if ($internalpassword) { + if ($internalpassword ) { echo ""; - } else if (strlen($CFG->changepassword) > 1) { + } else if ( strlen($CFG->changepassword) > 1 ) { echo "";
"; echo "id\" />"; echo ""; echo "
changepassword\" method=\"get\">"; echo ""; echo "