Merge branch 'm25_MDL-37515_Notice_when_submitting_change_password_form' of https://github.com/scara/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2013-03-05 01:03:26 +01:00
commit fd0c485584

View file

@ -112,7 +112,7 @@ if ($mform->is_cancelled()) {
}
// Reset login lockout - we want to prevent any accidental confusion here.
login_unlock_account($user);
login_unlock_account($USER);
// register success changing password
unset_user_preference('auth_forcepasswordchange', $USER);