Skip to content

Code With Geek

Easy Starting With Geek

  • Home
  • JS Framework
    • Angular
  • Mobile
    • React Native
  • PHP
    • PHP for beginners
  • jQuery
  • mySQL
  • Bootstrap
    • typeahead
    • CSS
  • Magento 2
  • VLC

Tag: Magento 2.3

user can’t login in Magento 2.3

You Want :

  • Successful login or option to create a password for first time user

But Actually Does

  • A user cannot log in and gets a blank page.
  • Server logs show error and PLAIN USER PASSWORD that he tried to use (very wrong idea).

Error :

PHP Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given in /vendor/magento/framework/Encryption/Encryptor.php:236
Stack trace:
#0 /vendor/magento/framework/Encryption/Encryptor.php(236): explode(‘:’, NULL, 3)
#1 /vendor/magento/framework/Encryption/Encryptor.php(205): Magento\Framework\Encryption\Encryptor->explodePasswordHash(NULL)
#2 /vendor/magento/framework/Encryption/Encryptor.php(197): Magento\Framework\Encryption\Encryptor->isValidHash(‘PLAIN PASSWORD HERE’, NULL)
#3 /vendor/magento/module-customer/Model/Authentication.php(170): Magento\Framework\Encryption\Encryptor->validateHash(‘PLAIN PASSWORD HERE’, NULL)

How to Solve :

Go to In Magento root Directory then vendor/magento/module_customer/Model/Authentication.php

Original Code :
Line 170

 $hash = $customerSecure->getPasswordHash();
        if (!$this->encryptor->validateHash($password, $hash)) {

Corrected Code :
Line 170

 $hash = $customerSecure->getPasswordHash();
       if (!$hash || !$this->encryptor->validateHash($password, $hash)) {

Replace New Code with old one, then Refresh cache.

Enjoy Your Development.
Pratik Panchal.

Author Pratik PanchalPosted on January 23, 2019January 23, 2019Categories Magento 2Tags Bugs, Encryptor.php:236 S, Magento 2.3, User Login2 Comments on user can’t login in Magento 2.3

Recent Posts

  • React Native – Hello World
  • React Native – Introduction
  • Angular Sample Application – Part 3 – The End
  • Angular Sample Application – Part 2
  • Angular Sample Application – Part 1

Recent Comments

  • Olawale on BER (Bit Error Rate) Calculation At different Angle in Indoor VLC
  • Olawale on BER (Bit Error Rate) Calculation At different Angle in Indoor VLC
  • cbd oil on BER (Bit Error Rate) Calculation At different Angle in Indoor VLC
  • cbd oil on BER (Bit Error Rate) Calculation At different Angle in Indoor VLC
  • Sanket on Visible Light Communication (Part – 1)

Archives

  • August 2020
  • June 2020
  • April 2020
  • February 2020
  • April 2019
  • March 2019
  • January 2019
  • December 2018
  • November 2018
  • August 2018
  • February 2018
  • January 2018

Categories

  • Angular
  • Bootstrap
  • CSS
  • jquery
  • JS Framework
  • Magento 2
  • Mobile
  • mysql
  • php
  • PHP for beginners
  • React Native
  • typeahead
  • Uncategorized
  • VLC
  • Home
  • JS Framework
    • Angular
  • Mobile
    • React Native
  • PHP
    • PHP for beginners
  • jQuery
  • mySQL
  • Bootstrap
    • typeahead
    • CSS
  • Magento 2
  • VLC
Code With Geek Proudly powered by WordPress