Skip to content
Browse files

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

than user id, so it would never be cleared.
  • Loading branch information...
1 parent d67775e commit 6a239dbe877017371ded7ae428d0d01f74f437b1 thepurpleblob committed Aug 17, 2005
Showing with 2 additions and 1 deletion.
  1. +2 −1 login/change_password.php
View
3 login/change_password.php
@@ -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);

0 comments on commit 6a239db

Please sign in to comment.
Something went wrong with that request. Please try again.