Updated last page context for magic link page

no refs

Allows Portal to determine if signup or signin page triggered the magic link flow in the page
This commit is contained in:
Rishabh 2021-09-09 16:16:12 +05:30
parent 485c40310b
commit 624a16ffad

View File

@ -77,7 +77,8 @@ async function signin({data, api, state}) {
try {
await api.member.sendMagicLink(data);
return {
page: 'magiclink'
page: 'magiclink',
lastPage: 'signin'
};
} catch (e) {
return {
@ -99,7 +100,8 @@ async function signup({data, state, api}) {
await api.member.checkoutPlan({plan, email, name});
}
return {
page: 'magiclink'
page: 'magiclink',
lastPage: 'signup'
};
} catch (e) {
return {