feat: refactored login

This commit is contained in:
Sebastian Hierholzer
2023-12-03 21:01:28 +01:00
parent 93e4897c0b
commit 361795ed47
7 changed files with 1624 additions and 260 deletions
+1 -2
View File
@@ -1,13 +1,12 @@
import Link from "next/link";
import { useState, FormEvent } from "react";
import { toast } from "react-hot-toast";
import SubmitButton from "@/components/SubmitButton";
import { signIn } from "next-auth/react";
import { useRouter } from "next/router";
import CenteredForm from "@/layouts/CenteredForm";
import TextInput from "@/components/TextInput";
const emailEnabled = process.env.NEXT_PUBLIC_EMAIL_PROVIDER;
const emailEnabled = process.env.NEXT_PUBLIC_EMAIL_PROVIDER === "true";
type FormData = {
name: string;