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 ZalaJan 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.– skyJan 18, 2018 at 10:49
-
after login check email setting Store>>setting>>configuration>>Admin>>Admin User Emails– Birjitsinh ZalaJan 18, 2018 at 10:52
2 Answers
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.– skyJan 18, 2018 at 10:52
-
-
Remember that the retrieve password only works if an account is associated with the email address.– mikemolsJan 18, 2018 at 10:58
-
I have not SMTP configured. And I try with an email address which I have assigned to my user.– skyJan 18, 2018 at 11:08
-
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?– skyJan 18, 2018 at 10:59
-
if your project on localhost you need smtp Otherwise do not change Jan 18, 2018 at 11:04