mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-11058 changeme password not always required to be changed
This commit is contained in:
parent
e436033fb8
commit
dd383bd9a7
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user