[GH-ISSUE #713] Can an admin reset a user's password? #8391

Closed
opened 2026-04-13 03:27:55 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @gys316 on GitHub (Dec 1, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/713

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). Original GitHub issue: https://github.com/better-auth/better-auth/issues/713 **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 enhancementlocked labels 2026-04-13 03:27:55 -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#8391