mirror of https://github.com/langgenius/dify.git
fix: show 'Invalid email or password' error tip when web app login failed (#27034)
This commit is contained in:
parent
2e9b3b8d44
commit
cad6db5a1d
|
|
@ -100,7 +100,10 @@ export default function MailAndPasswordAuth({ isEmailSetup }: MailAndPasswordAut
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
catch (e: any) {
|
||||
if (e.code === 'authentication_failed')
|
||||
Toast.notify({ type: 'error', message: e.message })
|
||||
}
|
||||
finally {
|
||||
setIsLoading(false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue