Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unset the changepassword flag for the _right_ user, even if we are ma…

…squerading an account
  • Loading branch information...
commit 42fd23bc3a69c31017ed81cd00d25b2d44a320cc 1 parent 29ad8bf
martinlanghoff authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  login/change_password.php
View
2  login/change_password.php
@@ -71,7 +71,7 @@
}
// register success changing password
- unset_user_preference('auth_forcepasswordchange');
+ unset_user_preference('auth_forcepasswordchange', $user);
set_moodle_cookie($USER->username);
Please sign in to comment.
Something went wrong with that request. Please try again.