MDL-37515 PHP Notice when submitting change password form

This commit is contained in:
Matteo Scaramuccia
2013-02-22 21:32:52 +01:00
parent f29e62cb6c
commit 8cca810cf9
+1 -1
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);