Call to clear force change password flag passed $user object rather

than user id, so it would never be cleared.
This commit is contained in:
thepurpleblob
2005-08-17 10:27:50 +00:00
parent d67775e55a
commit 6a239dbe87
+2 -1
View File
@@ -71,7 +71,8 @@
}
// register success changing password
unset_user_preference('auth_forcepasswordchange', $user);
// echo "<pre>"; print_r( $user ); print_r( $USER ); die;
unset_user_preference('auth_forcepasswordchange', $user->id);
set_moodle_cookie($USER->username);