Skip to content

Force changing admin account #1114

Answered by ganigeorgiev
Xevalous asked this question in Q&A
Nov 25, 2022 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

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:

sqlite3 pb_data/data.db 'UPDATE _admins SET passwordHash="$2a$10$xWbkSks7OiTmrri2DU6QSe6OAekcdqkOrkcI1wi4uiv9SU2HTlHoq" where email="test@example.com"'

The above will set a 123456 password for the admin with email test@example.com (you can remove the where ... 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.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@ganigeorgiev
Comment options

@grabbels
Comment options

@ganigeorgiev
Comment options

@grabbels
Comment options

@ganigeorgiev
Comment options

Answer selected by Xevalous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants