Skip to content

Commit b113d78

Browse files
FlyingmanaSerhiy Shkolyarenko
authored andcommitted
dont crash CustomerSetupUpgrade on users without password
there may be modules or setups, which work with users not having a password at all (cherry picked from commit 539b80f)
1 parent e725aee commit b113d78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Customer/Setup/UpgradeData.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ private function upgradeHash($setup)
333333

334334
$customers = $setup->getConnection()->fetchAll($select);
335335
foreach ($customers as $customer) {
336+
if ($customer['password_hash'] === null) {
337+
continue;
338+
}
336339
list($hash, $salt) = explode(Encryptor::DELIMITER, $customer['password_hash']);
337340

338341
$newHash = $customer['password_hash'];

0 commit comments

Comments
 (0)