fix(task5): add admin reset-password dialog in masters page

This commit is contained in:
Atharv1705
2026-11-17 18:07:50 +05:30
parent 5f649e3e4c
commit cb47017eac
5 changed files with 262 additions and 13 deletions
+7
View File
@@ -0,0 +1,7 @@
import { api } from "./client";
import { usersApi } from "./masters";
export { usersApi };
export const resetPassword = (id: number, new_password: string) =>
api.post<{ message: string }>(`/users/${id}/reset-password`, { new_password });