From 1f41cd96e19cde90a722ff6fb2a0a009ad41d45a Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Mon, 30 Oct 2023 22:45:50 -0700 Subject: [PATCH] Fix signin form with action fix. --- app/lib/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/actions.ts b/app/lib/actions.ts index eb84df8..e92d8c6 100644 --- a/app/lib/actions.ts +++ b/app/lib/actions.ts @@ -128,8 +128,8 @@ export async function authenticate( await signIn("credentials", Object.fromEntries(formData)); } catch (error) { if ((error as Error).message.includes("CredentialsSignin")) { - return "CredentialSignin"; + return "CredentialsSignin"; } throw error; } -} +} \ No newline at end of file