3

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

  • <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" – Birjitsinh Zala Jan 18 '18 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. – Akash Jan 18 '18 at 10:49
  • after login check email setting Store>>setting>>configuration>>Admin>>Admin User Emails – Birjitsinh Zala Jan 18 '18 at 10:52
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"
  • I know this solution, but I want to forget email to reset the password so it is easy for a non technical person. – Akash Jan 18 '18 at 10:52
  • do you have smtp configured? – mikemols Jan 18 '18 at 10:55
  • Remember that the retrieve password only works if an account is associated with the email address. – mikemols Jan 18 '18 at 10:58
  • I have not SMTP configured. And I try with an email address which I have assigned to my user. – Akash Jan 18 '18 at 11:08
  • Again, you need to configure SMTP inorder to send mails – mikemols Jan 18 '18 at 11:09
0

after login check email setting

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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