Skip to content

Commit bae09cd

Browse files
authored
Fix issue when login is not recorded for updated admin user
1 parent f9adcd9 commit bae09cd

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/User/Model/ResourceModel

1 file changed

+3
-0
lines changed

app/code/Magento/User/Model/ResourceModel/User.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ public function recordLogin(ModelUser $user)
121121
'logdate' => (new \DateTime())->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT),
122122
'lognum' => $user->getLognum() + 1,
123123
];
124+
125+
$user->setLogdate($data['logdate']);
126+
$user->setLognum($data['lognum']);
124127

125128
$condition = ['user_id = ?' => (int)$user->getUserId()];
126129

0 commit comments

Comments
 (0)