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="[email protected]" --admin-firstname="Admin" --admin-lastname="Admin" Commented 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
    Commented Jan 18, 2018 at 10:49
  • after login check email setting Store>>setting>>configuration>>Admin>>Admin User Emails Commented Jan 18, 2018 at 10:52

3 Answers 3

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="[email protected]" --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
    Commented Jan 18, 2018 at 10:52
  • do you have smtp configured?
    – mikemols
    Commented Jan 18, 2018 at 10:55
  • Remember that the retrieve password only works if an account is associated with the email address.
    – mikemols
    Commented 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
    Commented Jan 18, 2018 at 11:08
  • Again, you need to configure SMTP inorder to send mails
    – mikemols
    Commented 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
    Commented Jan 18, 2018 at 10:59
  • if your project on localhost you need smtp Otherwise do not change Commented Jan 18, 2018 at 11:04
0

Create a new admin user instead from command line by using below command

php bin/magento admin:user:create --admin-user admin --admin-password Password@1234 --admin-email [email protected] --admin-firstname john --admin-lastname doe

will save lots of your time and you can reset that existing user's password after login.

Your Answer

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

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