From dd383bd9a76b572b7432431cae9d287743f41c0e Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 29 Aug 2007 18:19:04 +0000 Subject: [PATCH] MDL-11058 changeme password not always required to be changed --- login/index.php | 4 ++++ 1 file changed, 4 insertions(+) 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()) { -- 2.39.5