Skip to content

Commit 3a26af4

Browse files
committed
Merge branch 'patch-3' of github.com:tkotosz/magento2 into 2.4-develop-prs
2 parents 7362a48 + bae09cd commit 3a26af4

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
@@ -123,6 +123,9 @@ public function recordLogin(ModelUser $user)
123123
'logdate' => (new \DateTime())->format(\Magento\Framework\Stdlib\DateTime::DATETIME_PHP_FORMAT),
124124
'lognum' => $user->getLognum() + 1,
125125
];
126+
127+
$user->setLogdate($data['logdate']);
128+
$user->setLognum($data['lognum']);
126129

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

0 commit comments

Comments
 (0)