Reset admin password #802

Open
opened 2026-02-04 21:22:48 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @jiuntian on GitHub (Sep 4, 2025).

I have forgotten my password and can't figure out how can we reset the admin password. I couldn't found anything related in docs and #327 is outdated and not working for v2.

Can you share a guide on how can we update or reset the admin password on v2?

Thanks

Originally created by @jiuntian on GitHub (Sep 4, 2025). I have forgotten my password and can't figure out how can we reset the admin password. I couldn't found anything related in docs and #327 is outdated and not working for v2. Can you share a guide on how can we update or reset the admin password on v2? Thanks
Author
Owner

@jiuntian commented on GitHub (Sep 4, 2025):

I have reset my password with psql query, but this should be done more elegant.

update user_account
set password = '<bcrypt 10 rounds hash>'
where email = '<email address>';
@jiuntian commented on GitHub (Sep 4, 2025): I have reset my password with psql query, but this should be done more elegant. ```psql update user_account set password = '<bcrypt 10 rounds hash>' where email = '<email address>'; ```
Author
Owner

@meltyshev commented on GitHub (Sep 5, 2025):

Hey! Sorry for the late reply. It's also possible to reset an admin password by running npm run db:create-admin-user (or docker compose run --rm planka npm run db:create-admin-user if running in Docker) and specifying the email of an existing user.

But yeah, it's not very convenient... We're planning to add a proper password reset feature soon.

@meltyshev commented on GitHub (Sep 5, 2025): Hey! Sorry for the late reply. It's also possible to reset an admin password by running `npm run db:create-admin-user` (or `docker compose run --rm planka npm run db:create-admin-user` if running in Docker) and specifying the email of an existing user. But yeah, it's not very convenient... We're planning to add a proper password reset feature soon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#802