mirror of
https://github.com/documenso/documenso.git
synced 2025-11-09 20:12:31 +10:00
31 lines
636 B
TypeScript
31 lines
636 B
TypeScript
import Head from "next/head";
|
|
import { getUserFromToken } from "@documenso/lib/server";
|
|
import ResetPassword from "../../../components/reset-password";
|
|
|
|
export default function ResetPasswordPage() {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Reset Password | Documenso</title>
|
|
</Head>
|
|
<ResetPassword />
|
|
</>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps(context: any) {
|
|
const user = await getUserFromToken(context.req, context.res);
|
|
if (user)
|
|
return {
|
|
redirect: {
|
|
source: "/login",
|
|
destination: "/dashboard",
|
|
permanent: false,
|
|
},
|
|
};
|
|
|
|
return {
|
|
props: {},
|
|
};
|
|
}
|