Archived
🚀 RELEASE: Version 2.0
This commit is contained in:
1 parent
46dce42826
commit
008f518f96
12 files changed
+12
-55
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user