Skip to content

Instantly share code, notes, and snippets.

@dfelton
Last active January 10, 2020 01:59
Show Gist options
  • Save dfelton/6fa4277b97a63a673ea6950d0cad05ba to your computer and use it in GitHub Desktop.
Save dfelton/6fa4277b97a63a673ea6950d0cad05ba to your computer and use it in GitHub Desktop.
Magento 2 Cheat Sheet
-- Set customer password via the database
SET @email='[email protected]', @passwd='test@123', @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