frontend: use correct param name for resetting the passwd

Pedro Lucas Porcellis porcellis@eletrotupi.com 1 month ago a5fffad0b5ed29e526e7deed028bfd0314d9ffe7
Parents: cd098b6
1 file(s) changed
  • frontend/lib/api.ts +1 -1
frontend/lib/api.ts
@@ -111,7 +111,7 @@
111 111 async resetPassword(token: string, password: string): Promise<{ message: string }> {
112 112 return this.request('/auth/reset-password', {
113 113 method: 'POST',
114 - body: JSON.stringify({ token, password }),
114 + body: JSON.stringify({ token, newPassword: password }),
115 115 });
116 116 }
117 117