We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1d1df6 + ef66687 commit 7c3c58cCopy full SHA for 7c3c58c
app/code/Magento/User/Model/User.php
@@ -881,8 +881,10 @@ public function performIdentityCheck($passwordString)
881
'result' => $isCheckSuccessful
882
]
883
);
884
- $this->reload();
885
- if ($this->getLockExpires()) {
+ // Check if lock information has been updated in observers
+ $clonedUser = clone($this);
886
+ $clonedUser->reload();
887
+ if ($clonedUser->getLockExpires()) {
888
throw new \Magento\Framework\Exception\State\UserLockedException(
889
__('Your account is temporarily disabled.')
890
0 commit comments