mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 14:18:26 +02:00
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:
parent
ec8d3569d3
commit
5220ec9d59
10 changed files with 332 additions and 239 deletions
|
@ -388,6 +388,13 @@ authenticated.post(
|
|||
user.updateUser2FA
|
||||
);
|
||||
|
||||
authenticated.post(
|
||||
"/user/:userId/password",
|
||||
verifyApiKeyIsRoot,
|
||||
verifyApiKeyHasAction(ActionsEnum.resetUserPassword),
|
||||
user.adminResetUserPassword
|
||||
);
|
||||
|
||||
authenticated.get(
|
||||
"/user/:userId",
|
||||
verifyApiKeyIsRoot,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue