clean up unused code

This commit is contained in:
Matthias Nannt
2022-08-25 16:09:28 +02:00
parent 8a875922b3
commit f26e14df12

View File

@@ -7,13 +7,12 @@ import { useRouter } from "next/router";
import BaseLayoutUnauthorized from "../../components/layout/BaseLayoutUnauthorized";
const { publicRuntimeConfig } = getConfig();
const { passwordResetDisabled } = publicRuntimeConfig;
export default function SignInPage() {
const router = useRouter();
const { error } = router.query;
const { passwordResetDisabled } = publicRuntimeConfig
const handleSubmit = async (e) => {
e.preventDefault();
await signIn("credentials", {
@@ -21,11 +20,6 @@ export default function SignInPage() {
email: e.target.elements.email.value,
password: e.target.elements.password.value,
});
/* router.push(
`/auth/verification-requested?email=${encodeURIComponent(
e.target.elements.email.value
)}`
); */
};
return (
<BaseLayoutUnauthorized title="Sign in">
@@ -115,11 +109,11 @@ export default function SignInPage() {
Sign in
</button>
<div className="mt-3 text-center">
{passwordResetDisabled ? null : (
{!passwordResetDisabled && (
<Link href="/auth/forgot-password">
<a
href=""
className="text-xs text-red hover:text-red-600 block"
className="block text-xs text-red hover:text-red-600"
>
Forgot your password?
</a>