fix: improve login flow by ensuring proper type handling for redirect and prevent loopback IP blocking in security checks
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
}
|
||||
|
||||
const gpsPromise = coletarGPS();
|
||||
|
||||
const result = await authClient.signIn.email(
|
||||
{ email: matricula.trim(), password: senha },
|
||||
{
|
||||
@@ -163,7 +164,7 @@
|
||||
}
|
||||
})();
|
||||
|
||||
await goto(resolve(redirectAfterLogin as string), { replaceState: true });
|
||||
await goto(resolve(redirectAfterLogin as any) as any, { replaceState: true });
|
||||
} else {
|
||||
erroLogin = result.error?.message || 'Erro ao fazer login';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user