🚀 RELEASE: Version 2.0
This commit is contained in:
@ -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