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.
1 parent 9907990 commit ef66687Copy full SHA for ef66687
app/code/Magento/User/Model/User.php
@@ -865,8 +865,10 @@ public function performIdentityCheck($passwordString)
865
'result' => $isCheckSuccessful
866
]
867
);
868
- $this->reload();
869
- if ($this->getLockExpires()) {
+ // Check if lock information has been updated in observers
+ $clonedUser = clone($this);
870
+ $clonedUser->reload();
871
+ if ($clonedUser->getLockExpires()) {
872
throw new \Magento\Framework\Exception\State\UserLockedException(
873
__('Your account is temporarily disabled.')
874
0 commit comments