Skip to content

Commit ef66687

Browse files
author
Vadim Zubovich
committed
SPM-131: PRs Stabilization
- Fix bug: account information isn't being updated
1 parent 9907990 commit ef66687

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
@@ -865,8 +865,10 @@ public function performIdentityCheck($passwordString)
865865
'result' => $isCheckSuccessful
866866
]
867867
);
868-
$this->reload();
869-
if ($this->getLockExpires()) {
868+
// Check if lock information has been updated in observers
869+
$clonedUser = clone($this);
870+
$clonedUser->reload();
871+
if ($clonedUser->getLockExpires()) {
870872
throw new \Magento\Framework\Exception\State\UserLockedException(
871873
__('Your account is temporarily disabled.')
872874
);

0 commit comments

Comments
 (0)