change forgot password modal
This commit is contained in:
parent
7bcae3ba98
commit
92122e3abb
|
@ -65,11 +65,15 @@ export const ForgotPasswordForm = () => {
|
||||||
if (response && response.message) {
|
if (response && response.message) {
|
||||||
setMessage(response.message)
|
setMessage(response.message)
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (
|
|
||||||
response.errors &&
|
response.errors &&
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
response.errors.length > 0 &&
|
response.errors.length > 0 &&
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
response.errors[0].message.includes('bad user credentials')
|
response.errors[0].message.includes('bad user credentials')
|
||||||
) {
|
) {
|
||||||
setIsUserNotFound(true)
|
setIsUserNotFound(true)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user