🚀 RELEASE: Version 2.0

This commit is contained in:
Divlo
2020-05-13 19:37:24 +02:00
parent 46dce42826
commit 008f518f96
12 changed files with 12 additions and 55 deletions

View File

@ -68,9 +68,13 @@ const newPassword = (props) => {
);
}
newPassword.getInitialProps = (context) => {
export async function getServerSideProps(context) {
if (context.query.token != undefined) {
return context.query;
return {
props: {
token: context.query.token
}
};
}
return redirect(context, '/404');
}