0

My site is working fine but existing customer can’t login. Is ther any way to resolve this isssue??

1
  • Which migration technique have you employed? Commented May 14, 2019 at 11:19

2 Answers 2

0

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
3
  • after run this command, I got error: Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given???
    – gill
    Commented May 15, 2019 at 13:01
  • Can you please share the exact error here Commented May 15, 2019 at 13:04
  • 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))
    – gill
    Commented May 15, 2019 at 13:25
0

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
4
  • I am done with migration.
    – gill
    Commented May 14, 2019 at 12:17
  • have you run the above command? after this run indexing.
    – Saphal Jha
    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
    – gill
    Commented May 14, 2019 at 15:17
  • I solve this problem. magento.stackexchange.com/questions/286520/…
    – leo
    Commented Aug 26, 2019 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.