mirror of
https://github.com/langgenius/dify.git
synced 2026-04-10 11:37:11 +08:00
fix: show 'Invalid email or password' error tip when web app login failed (#27034)
This commit is contained in:
parent
91bb8ae4d2
commit
531a0b755a
@ -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
Block a user