Created
August 16, 2018 08:14
-
-
Save zeloc/d95a6a870d6720cd69acd96411980a87 to your computer and use it in GitHub Desktop.
Changes the user password in magento 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @email='testspace@test.com', @passwd='Test@123456', @salt=MD5(RAND()); | |
UPDATE customer_entity | |
SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1') | |
WHERE email = @email; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment