Force changing admin account #1114
-
Basicly i kinda forgot my admin account in local pb when going to log in & i dont wanna my db gone, i know its dumb, i have tried to reset password from login page, but there is none email sended soo, is there a other method to reset admin pass? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
In the future there will be a console command(s) to interact with the Admin APIs, but for now if you want to reset your password you can directly update the _admins table entry in your database:
The above will set a Update: I've inversed the quotes in the above command to prevent the command line to interpret the password hash as env variable. |
Beta Was this translation helpful? Give feedback.
In the future there will be a console command(s) to interact with the Admin APIs, but for now if you want to reset your password you can directly update the _admins table entry in your database:
The above will set a
123456
password for the admin with emailtest@example.com
(you can remove thewhere ...
part if you don't remember your email).Update: I've inversed the quotes in the above command to prevent the command line to interpret the password hash as env variable.