3

I try to change admin password by Forgot your password link but I did not get any email for Forgot password.

3
  • <path_to_magento>/bin/magento admin:user:create --admin-user="admin" --admin-password="123123q" --admin-email="admin@example.com" --admin-firstname="Admin" --admin-lastname="Admin" Jan 18, 2018 at 10:45
  • @Brijitsinh I know this solution but I want forgot email to reset the password so it is easy for a nontechnical person.
    – sky
    Jan 18, 2018 at 10:49
  • after login check email setting Store>>setting>>configuration>>Admin>>Admin User Emails Jan 18, 2018 at 10:52

2 Answers 2

0

Solution #1

This answer is taken from https://magento.stackexchange.com/a/141612/62052

UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin';

Solution #2

This answer is taken from https://magento.stackexchange.com/a/90933/62052

path_to_magento/bin/magento admin:user:create --admin-user="admin" --admin-password="123123q" --admin-email="admin@example.com" --admin-firstname="Admin" --admin-lastname="Admin"
7
  • I know this solution, but I want to forget email to reset the password so it is easy for a non technical person.
    – sky
    Jan 18, 2018 at 10:52
  • do you have smtp configured?
    – mikemols
    Jan 18, 2018 at 10:55
  • Remember that the retrieve password only works if an account is associated with the email address.
    – mikemols
    Jan 18, 2018 at 10:58
  • I have not SMTP configured. And I try with an email address which I have assigned to my user.
    – sky
    Jan 18, 2018 at 11:08
  • Again, you need to configure SMTP inorder to send mails
    – mikemols
    Jan 18, 2018 at 11:09
0

after login check email setting

Store>>setting>>configuration>>Admin>>Admin User Emails
2
  • I can see 3 option over there and all of them set as default so now what I have to do?
    – sky
    Jan 18, 2018 at 10:59
  • if your project on localhost you need smtp Otherwise do not change Jan 18, 2018 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.