mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
now the lastaccess field is also updated upon every login, closing bug 1833
This commit is contained in:
parent
0475502255
commit
2a2f5f1181
@ -442,7 +442,7 @@ function update_user_login_times() {
|
||||
global $USER;
|
||||
|
||||
$USER->lastlogin = $user->lastlogin = $USER->currentlogin;
|
||||
$USER->currentlogin = $user->currentlogin = time();
|
||||
$USER->currentlogin = $user->lastaccess = $user->currentlogin = time();
|
||||
|
||||
$user->id = $USER->id;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user