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="[email protected]" --admin-firstname="Admin" --admin-lastname="Admin"– Birjitsinh ZalaCommented 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.– skyCommented Jan 18, 2018 at 10:49
-
after login check email setting Store>>setting>>configuration>>Admin>>Admin User Emails– Birjitsinh ZalaCommented Jan 18, 2018 at 10:52
3 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="[email protected]" --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.– skyCommented Jan 18, 2018 at 10:52
-
-
Remember that the retrieve password only works if an account is associated with the email address.– mikemolsCommented 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.– skyCommented Jan 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?– skyCommented 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
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.