f
This commit is contained in:
@@ -91,6 +91,7 @@ export async function passwordResetStart(payload: PasswordResetStartPayload): Pr
|
||||
}
|
||||
|
||||
export interface PasswordResetCompletePayload {
|
||||
email: string
|
||||
code: string
|
||||
new_password: string
|
||||
confirm_password: string
|
||||
|
||||
@@ -47,7 +47,7 @@ export function RestorePasswordForm() {
|
||||
|
||||
setIsLoading(true)
|
||||
try {
|
||||
await passwordResetComplete({ code, new_password: newPassword, confirm_password: confirmPassword })
|
||||
await passwordResetComplete({ email, code, new_password: newPassword, confirm_password: confirmPassword })
|
||||
navigate(ROUTES.LOGIN)
|
||||
} catch {
|
||||
setError('Не удалось изменить пароль. Проверьте код и попробуйте снова.')
|
||||
|
||||
Reference in New Issue
Block a user