update restore password
This commit is contained in:
parent
639e566be5
commit
ea24995c0e
|
@ -64,15 +64,8 @@ export const ForgotPasswordForm = () => {
|
||||||
redirect_uri: window.location.origin,
|
redirect_uri: window.location.origin,
|
||||||
})
|
})
|
||||||
console.debug('[ForgotPasswordForm] authorizer response:', data)
|
console.debug('[ForgotPasswordForm] authorizer response:', data)
|
||||||
setMessage(data.message)
|
if (errors && errors.some((error) => error.message.includes('bad user credentials'))) {
|
||||||
|
|
||||||
console.warn(errors)
|
|
||||||
if (errors.some((e) => e.cause === 'user_not_found')) {
|
|
||||||
setIsUserNotFound(true)
|
setIsUserNotFound(true)
|
||||||
return
|
|
||||||
} else {
|
|
||||||
const errorText = errors.map((e) => e.message).join(' ') // FIXME
|
|
||||||
setSubmitError(errorText)
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user