From aff62d55dc26cdcb3a7b81ec96e322bb91d5a6ee Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Sun, 20 Oct 2024 21:50:46 +0800 Subject: [PATCH] feat: login-in form --- components/sign-in.tsx | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/components/sign-in.tsx b/components/sign-in.tsx index 0bc181c..c31d84d 100644 --- a/components/sign-in.tsx +++ b/components/sign-in.tsx @@ -1,18 +1,30 @@ +import Footer from "@/app/[locale]/(main)/footer" +import Header from "@/app/[locale]/(main)/header" import { signIn } from "@/auth" export function SignIn() { return ( -
{ - "use server" - await signIn("credentials", formData) - }} - > - - -
+
+
+
+
{ + "use server" + const res = await signIn("credentials", formData) + console.log(res) + }} + > +
+ + +
+
+
+
) } \ No newline at end of file