diff --git a/apps/web/components/reset-password.tsx b/apps/web/components/reset-password.tsx index 3ac6c8b74..53ece210c 100644 --- a/apps/web/components/reset-password.tsx +++ b/apps/web/components/reset-password.tsx @@ -12,7 +12,7 @@ interface ResetPasswordForm { confirmPassword: string; } -export default function ResetPassword(props: any) { +export default function ResetPassword() { const router = useRouter(); const { token } = router.query; @@ -48,7 +48,7 @@ export default function ResetPassword(props: any) { setResetSuccessful(true); setTimeout(() => { router.push("/login"); - }, 2000); + }, 3000); } }; diff --git a/apps/web/pages/auth/reset/[token].tsx b/apps/web/pages/auth/reset/[token].tsx index fffe7c3c7..33868f762 100644 --- a/apps/web/pages/auth/reset/[token].tsx +++ b/apps/web/pages/auth/reset/[token].tsx @@ -2,13 +2,13 @@ import Head from "next/head"; import { getUserFromToken } from "@documenso/lib/server"; import ResetPassword from "../../../components/reset-password"; -export default function ResetPasswordPage(props: any) { +export default function ResetPasswordPage() { return ( <> Reset Password | Documenso - + ); } @@ -24,11 +24,7 @@ export async function getServerSideProps(context: any) { }, }; - const ALLOW_SIGNUP = process.env.NEXT_PUBLIC_ALLOW_SIGNUP === "true"; - return { - props: { - ALLOW_SIGNUP, - }, + props: {}, }; } diff --git a/apps/web/pages/forgot-password.tsx b/apps/web/pages/forgot-password.tsx index 7ecf29881..b15bec499 100644 --- a/apps/web/pages/forgot-password.tsx +++ b/apps/web/pages/forgot-password.tsx @@ -2,13 +2,13 @@ import Head from "next/head"; import { getUserFromToken } from "@documenso/lib/server"; import ForgotPassword from "../components/forgot-password"; -export default function ForgotPasswordPage(props: any) { +export default function ForgotPasswordPage() { return ( <> Forgot Password | Documenso - + ); } @@ -24,11 +24,7 @@ export async function getServerSideProps(context: any) { }, }; - const ALLOW_SIGNUP = process.env.NEXT_PUBLIC_ALLOW_SIGNUP === "true"; - return { - props: { - ALLOW_SIGNUP, - }, + props: {}, }; }