Skip to content

Commit 8781bf0

Browse files
author
Cari Spruiell
committed
MAGETWO-40274: Merge Branches and Stabilize Builds
- updated AuthObserver for changes in Encryptor
1 parent 1134f02 commit 8781bf0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/User/Model/Backend/Observer/AuthObserver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@ public function adminAuthenticate($observer)
130130
$this->_checkExpiredPassword($latestPassword);
131131

132132
// upgrade admin password
133-
$isValidHash = $this->encryptor->isValidHashByVersion(
133+
$isValidHash = $this->encryptor->isValidHash(
134134
$password,
135-
$user->getPassword(),
136-
Encryptor::HASH_VERSION_LATEST
135+
$user->getPassword()
137136
);
138137
if (!$isValidHash) {
139138
$this->userFactory->create()

0 commit comments

Comments
 (0)