mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-30 19:46:38 +08:00
fix: repair user password reset and recreate flow
This commit is contained in:
@@ -10,6 +10,9 @@ export const adminAPI = {
|
||||
updateUser: (id: string, payload: { username: string }) =>
|
||||
api.patch<User>(`/admin/users/${id}`, payload).then((r) => r.data),
|
||||
|
||||
resetUserPassword: (id: string, password: string) =>
|
||||
api.patch(`/admin/users/${id}/password`, { password }).then((r) => r.data),
|
||||
|
||||
deleteUser: (id: string) => api.delete(`/admin/users/${id}`).then((r) => r.data),
|
||||
|
||||
listSettings: () => api.get<Setting[]>('/admin/settings').then((r) => r.data),
|
||||
|
||||
Reference in New Issue
Block a user