Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6a239dbe877017371ded7ae428d0d01f74f437b1 1 parent d67775e
thepurpleblob authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.