]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13063 fixed comments and changeme password reset; merged from MOODLE_19_STABLE
authorskodak <skodak>
Sat, 19 Jan 2008 20:05:21 +0000 (20:05 +0000)
committerskodak <skodak>
Sat, 19 Jan 2008 20:05:21 +0000 (20:05 +0000)
lib/moodlelib.php

index 0165e364642fb6d39160bcb01b4c82ac242f1eca..0870c41d5f39bd7f99dd9ce75a824cbf3216eee5 100644 (file)
@@ -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)) {