Move password reset to user settings and add integration API for password reset.

- Move password reset from admin table to user general settings
- Add resetUserPassword action and integration API endpoint
- Fix API key auth compatibility in adminResetUserPassword
This commit is contained in:
Adrian Astles 2025-07-15 07:28:16 +08:00
parent ec8d3569d3
commit 5220ec9d59
10 changed files with 332 additions and 239 deletions

View file

@ -388,6 +388,13 @@ authenticated.post(
user.updateUser2FA
);
authenticated.post(
"/user/:userId/password",
verifyApiKeyIsRoot,
verifyApiKeyHasAction(ActionsEnum.resetUserPassword),
user.adminResetUserPassword
);
authenticated.get(
"/user/:userId",
verifyApiKeyIsRoot,