This is only a quick tip.
But in some cases you need to reset a admin user password i.e. if you imported a dump
as developer and have no admin credentials.
There are two commands for that.
Create a new admin user
1 2 |
$ n98-magerun.phar admin:user:create |
Creates a new admin user in interactive mode.
Change password of an existing admin user
You can list all admin users with admin:user:list command and should see a list like this:
1 2 3 4 5 6 7 8 |
$ n98-magerun.phar admin:user:list +----+----------+----------------------+--------+ | id | username | email | status | +----+----------+----------------------+--------+ | 1 | admin | john.doe@example.com | active | +----+----------+----------------------+--------+ |
Now you can change the password with this command:
1 2 |
$ n98-magerun.phar admin:user:change-password john.doe@example.com "mynewpassword" |
Hope this helps you a little bit.