Can an admin reset a user's password? #308

Closed
opened 2026-03-13 07:41:23 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @gys316 on GitHub (Dec 1, 2024).

Is your feature request related to a problem? Please describe.
I would like users with the admin role to have the ability to reset other users' passwords. Currently, there doesn't seem to be a straightforward way for admins to perform this action using the existing functions.

Describe the solution you'd like
Admins should be able to use the setPassword or resetPassword functions to set or reset passwords for other users, not just for themselves.

Describe alternatives you've considered
I attempted to modify the hashed password directly in the database, but this doesn't seem to be a secure or recommended approach.

Originally created by @gys316 on GitHub (Dec 1, 2024). **Is your feature request related to a problem? Please describe.** I would like users with the admin role to have the ability to reset other users' passwords. Currently, there doesn't seem to be a straightforward way for admins to perform this action using the existing functions. **Describe the solution you'd like** Admins should be able to use the setPassword or resetPassword functions to set or reset passwords for other users, not just for themselves. **Describe alternatives you've considered** I attempted to modify the hashed password directly in the database, but this doesn't seem to be a secure or recommended approach.
GiteaMirror added the enhancementplugin labels 2026-03-13 07:41:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#308