From: skodak Date: Wed, 29 Aug 2007 18:19:04 +0000 (+0000) Subject: MDL-11058 changeme password not always required to be changed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dd383bd9a76b572b7432431cae9d287743f41c0e;p=moodle.git MDL-11058 changeme password not always required to be changed --- diff --git a/login/index.php b/login/index.php index f494f5c93e..77133a4815 100644 --- a/login/index.php +++ b/login/index.php @@ -175,6 +175,10 @@ httpsrequired(); /// check whether the user should be changing password if (get_user_preferences('auth_forcepasswordchange', false) || $frm->password == 'changeme'){ + if ($frm->password == 'changeme') { + //force the change + set_user_preference('auth_forcepasswordchange', true); + } //Select password change url if ($userauth->can_change_password()) { if ($changeurl = $userauth->change_password_url()) {