mirror of
https://github.com/BradNut/nextjs-dashboard
synced 2025-09-08 17:40:30 +00:00
Fix signin form with action fix.
This commit is contained in:
parent
73d3c564de
commit
1f41cd96e1
1 changed files with 2 additions and 2 deletions
|
|
@ -128,8 +128,8 @@ export async function authenticate(
|
||||||
await signIn("credentials", Object.fromEntries(formData));
|
await signIn("credentials", Object.fromEntries(formData));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if ((error as Error).message.includes("CredentialsSignin")) {
|
if ((error as Error).message.includes("CredentialsSignin")) {
|
||||||
return "CredentialSignin";
|
return "CredentialsSignin";
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue