Unset the changepassword flag for the _right_ user, even if we are masquerading an account

This commit is contained in:
martinlanghoff
2005-08-16 03:19:38 +00:00
parent 29ad8bfe68
commit 42fd23bc3a
+1 -1
View File
@@ -71,7 +71,7 @@
}
// register success changing password
unset_user_preference('auth_forcepasswordchange');
unset_user_preference('auth_forcepasswordchange', $user);
set_moodle_cookie($USER->username);