MDL-13063 fixed comments and changeme password reset; merged from MOODLE_19_STABLE
This commit is contained in:
+3
-1
@@ -3044,7 +3044,9 @@ function authenticate_user_login($username, $password) {
|
||||
function complete_user_login($user) {
|
||||
global $CFG, $USER;
|
||||
|
||||
$USER = $user; // should not be needed, but cover for legacy code
|
||||
$USER = $user; // this is required because we need to access preferences here!
|
||||
|
||||
reload_user_preferences();
|
||||
|
||||
update_user_login_times();
|
||||
if (empty($CFG->nolastloggedin)) {
|
||||
|
||||
Reference in New Issue
Block a user