mirror of https://github.com/MISP/MISP
fix: [UI] Correctly display last login time
Until now, we were showing the "one before last" login time, this fixes the issuepull/7374/head
parent
b88850bf6e
commit
5eb67f0fd9
|
@ -1245,9 +1245,9 @@ class UsersController extends AppController
|
|||
),
|
||||
'recursive' => -1
|
||||
));
|
||||
$lastUserLogin = $user['User']['last_login'];
|
||||
unset($user['User']['password']);
|
||||
$this->User->updateLoginTimes($user['User']);
|
||||
$lastUserLogin = $user['User']['last_login'];
|
||||
$this->User->Behaviors->enable('SysLogLogable.SysLogLogable');
|
||||
if ($lastUserLogin) {
|
||||
$readableDatetime = (new DateTime())->setTimestamp($lastUserLogin)->format('D, d M y H:i:s O'); // RFC822
|
||||
|
|
Loading…
Reference in New Issue