Skip to content

User created by admin cannot login #19060

Closed
@tomekjordan

Description

@tomekjordan

Preconditions (*)

  1. Magento 2.3 beta 32
  2. PHP 7.1
  3. Maria Db 11

Steps to reproduce (*)

  1. Create user at admin area (without password)
  2. User try to login at frontend

Expected result (*)

  1. Succesful login or option to create password for first time user

Actual result (*)

  1. User cannot login and gets blank page
  2. Server logs shows error and PLAIN USER PASSWORD that he tried to use (very wrong idea)

2018-11-04 10:35:27.611759 [NOTICE] [172.68.51.106:27986] [STDERR] 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)
#4 /vendor/magento/module-customer/Model/AccountManagement.php(543): Magento\Customer\Model\Authentication->authenticate('2', 'PLAIN PASSWORD HERE in /vendor/magento/framework/Encryption/Encryptor.php on line 236

Metadata

Metadata

Assignees

Labels

Component: CustomerFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions