MDL-11058 changeme password not always required to be changed

This commit is contained in:
skodak 2007-08-29 18:19:04 +00:00
parent e436033fb8
commit dd383bd9a7

View File

@ -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()) {