fix: show 'Invalid email or password' error tip when web app login failed (#27034)

This commit is contained in:
NFish 2025-10-17 14:03:34 +08:00 committed by Garfield Dai
parent 2e9b3b8d44
commit cad6db5a1d
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}