🚀 RELEASE: Version 2.0

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

No files matched your search

+6 -2
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');
}