support login

This commit is contained in:
Alex Santos 2022-06-23 22:21:25 -03:00
parent 09ec73d1b4
commit 32b592ce02

View File

@ -71,7 +71,7 @@ export default function Home() {
}else{ }else{
try { try {
await signIn({email, password}).then((res: any) => { await signIn({email, password}).then((res: any) => {
if (res.response.status === 422) { if (res.response.status === 422 || res.response.status === 401) {
setOpenSnackError(true) setOpenSnackError(true)
} }
}) })