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