mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
🐛 Added integrity token to one click subscribe (#20836)
ref https://linear.app/tryghost/issue/ONC-269 When we added the integrity token to all `send-magic-link` callers in Portal, we missed one.
This commit is contained in:
parent
8f3985bc66
commit
8a1274517d
1 changed files with 2 additions and 0 deletions
|
@ -484,11 +484,13 @@ async function oneClickSubscribe({data: {siteUrl}, state}) {
|
|||
const referrerUrl = window.location.href;
|
||||
const referrerSource = getRefDomain();
|
||||
|
||||
const integrityToken = await externalSiteApi.member.getIntegrityToken();
|
||||
await externalSiteApi.member.sendMagicLink({
|
||||
emailType: 'signup',
|
||||
name: member.name,
|
||||
email: member.email,
|
||||
autoRedirect: false,
|
||||
integrityToken,
|
||||
customUrlHistory: state.site.outbound_link_tagging ? [
|
||||
{
|
||||
time: Date.now(),
|
||||
|
|
Loading…
Add table
Reference in a new issue