fix admin password reset: send new_password (was password)
Deploy / lint (push) Successful in 6s
Deploy / test (push) Successful in 36s
Deploy / deploy (push) Successful in 24s

The reset endpoint's schema expects new_password; the client sent password,
causing "body.new_password: Field required".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 11:46:06 +02:00
parent 9008865d75
commit d53b4ffb57
+1 -1
View File
@@ -38,7 +38,7 @@ export function updateAccess(userId: number, hasAccess: boolean) {
export function resetPassword(userId: number, password: string) {
return apiClient
.put<{ message: string }>(`admin/users/${userId}/password`, { password })
.put<{ message: string }>(`admin/users/${userId}/password`, { new_password: password })
.then((r) => r.data);
}