Skip to content

Commit 7c3c58c

Browse files
author
Joan He
committed
Merge commit 'refs/pull/50/head' of https://github.com/magento/magento2ce into MAGETWO-38635-prs
2 parents e1d1df6 + ef66687 commit 7c3c58c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,10 @@ public function performIdentityCheck($passwordString)
881881
'result' => $isCheckSuccessful
882882
]
883883
);
884-
$this->reload();
885-
if ($this->getLockExpires()) {
884+
// Check if lock information has been updated in observers
885+
$clonedUser = clone($this);
886+
$clonedUser->reload();
887+
if ($clonedUser->getLockExpires()) {
886888
throw new \Magento\Framework\Exception\State\UserLockedException(
887889
__('Your account is temporarily disabled.')
888890
);

0 commit comments

Comments
 (0)