My site is working fine but existing customer can’t login. Is ther any way to resolve this isssue??
2 Answers
Magento 1 used MD5 Algorithm to store customer passwords whereas in Magento 2, SHA256 Algorithm is made use. So try running this command to upgrade customer' s hash according to the latest algorithm
php bin/magento customer:hash:upgrade
-
after run this command, I got error: Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given???– gillCommented May 15, 2019 at 13:01
-
-
After run php bin/magento customer:hash:upgrade, I got an error: ----Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given in /vendor/magento/framework/Encryption/Encryptor.php:247 ----/vendor/symfony/console/Command/Command.php(255): Magento\Customer\Console\Command\UpgradeHashAlgorithmCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))– gillCommented May 15, 2019 at 13:25
You need to manually upgrade your password_hash using md5 to sha256, Once you are done with migration, run below command:
php -f bin/magento customer:hash:upgrade
-
-
have you run the above command? after this run indexing. Commented May 14, 2019 at 12:21
-
after run this command, I got error: Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given– gillCommented May 14, 2019 at 15:17
-
I solve this problem. magento.stackexchange.com/questions/286520/…– leoCommented Aug 26, 2019 at 7:19