diff --git a/src/pages/auth/login.tsx b/src/pages/auth/login.tsx index 06051b4..72feb97 100644 --- a/src/pages/auth/login.tsx +++ b/src/pages/auth/login.tsx @@ -4,17 +4,13 @@ import { Card, Center, CheckIcon, - Divider, Group, Modal, - PasswordInput, PinInput, Text, - TextInput, Title, } from '@mantine/core'; import { useForm } from '@mantine/form'; -import { IconBrandDiscordFilled, IconBrandGithub, IconBrandGoogle, IconKey } from '@tabler/icons-react'; import useFetch from 'hooks/useFetch'; import Head from 'next/head'; import Link from 'next/link'; @@ -24,7 +20,6 @@ export { getServerSideProps } from 'middleware/getServerSideProps'; export default function Login({ title, - user_registration, oauth_registration, bypass_local_login, oauth_providers: unparsed, @@ -40,20 +35,6 @@ export default function Login({ const oauth_providers = JSON.parse(unparsed); - const show_local_login = - router.query.local === 'true' || !(bypass_local_login && oauth_providers?.length > 0); - - const icons = { - GitHub: IconBrandGithub, - Discord: IconBrandDiscordFilled, - Google: IconBrandGoogle, - Authentik: IconKey, - }; - - for (const provider of oauth_providers) { - provider.Icon = icons[provider.name]; - } - const form = useForm({ initialValues: { username: '', @@ -124,7 +105,7 @@ export default function Login({ return ( <>
-