MDL-13063 fixed comments and changeme password reset; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2008-01-19 20:05:21 +00:00
parent 7fd4c03f41
commit ff396fd597
+3 -1
View 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)) {