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