Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Magento 1
  2. SET @passwd='newpassord', @salt='5k';
  3. For admin
  4. update admin_user SET password = CONCAT(MD5(CONCAT(@salt , @passwd)), CONCAT(":", @salt )) where email = 'admin@mail.com';
  5. For customer
  6. update customer_entity SET password_hash = CONCAT(MD5(CONCAT(@salt , @passwd)), CONCAT(":", @salt )) where email = 'customer@mail.com';
  7.  
  8.  
  9. Magento 2
  10. SET @passwd='newpassord', @salt=MD5(RAND());
  11. For admin
  12. update admin_user SET password = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1') where email = 'admin@mail.com';
  13. For customer
  14. update customer_entity SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1') where email = 'customer@mail.com';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement