mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
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:
parent
485c40310b
commit
624a16ffad
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user