Add prefill with query params
parent
a6bf5287bd
commit
d6f18d79f8
|
@ -448,13 +448,15 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
|
||||||
// no token given, treat as a normal signup without verification token
|
// no token given, treat as a normal signup without verification token
|
||||||
if (!token) {
|
if (!token) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: JSON.parse(
|
||||||
|
JSON.stringify({
|
||||||
...props,
|
...props,
|
||||||
prepopulateFormValues: {
|
prepopulateFormValues: {
|
||||||
username: preFillusername || null,
|
username: preFillusername || null,
|
||||||
email: prefilEmail || null,
|
email: prefilEmail || null,
|
||||||
},
|
},
|
||||||
},
|
})
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue