diff --git a/website/src/pages/auth/signin.tsx b/website/src/pages/auth/signin.tsx index 8f1edf9f..3a2f48ff 100644 --- a/website/src/pages/auth/signin.tsx +++ b/website/src/pages/auth/signin.tsx @@ -6,7 +6,7 @@ import { GetServerSideProps } from "next"; import Head from "next/head"; import Link from "next/link"; import { useRouter } from "next/router"; -import { ClientSafeProvider, getProviders, signIn } from "next-auth/react"; +import { getProviders, signIn } from "next-auth/react"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import React, { useEffect, useRef, useState } from "react"; import { useForm } from "react-hook-form"; @@ -66,19 +66,10 @@ function Signin({ providers }: SigninProps) { } }, [router]); - const signinWithEmail = (data: { email: string }) => { - signIn(email.id, { - callbackUrl: "/dashboard", - email: data.email, - captcha: captcha.current?.getResponse(), - }); - }; - const { colorMode } = useColorMode(); const bgColorClass = colorMode === "light" ? "bg-gray-50" : "bg-chakra-gray-900"; const buttonBgColor = colorMode === "light" ? "#2563eb" : "#2563eb"; - const { register, handleSubmit } = useForm<{ email: string }>(); - const captcha = useRef(); + return (
@@ -87,25 +78,8 @@ function Signin({ providers }: SigninProps) { - {credentials && } - {email && ( -
- - - - } mt="4"> - Continue with Email - - -
- )} + {credentials && } + {email && } {discord && (