If you forgot your admin password in magento 2 in localhost you cann’t retrieve by just clicking on lost password. For that you can reset through Magento CLI, then you can easily change password of your original user.
Go inside magento directory and type:
1 |
php bin/magento admin:user:create --admin-user="admin" --admin-password="admin123" --admin-email="admin@gmail.com" --admin-firstname="Admin" --admin-lastname="Admin" |
Leave a Reply