From c0ac7b6b37a7606ff156c9504ba464057627e355 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Fri, 18 Sep 2020 17:43:42 +0100 Subject: [PATCH] Updated getMagicLink usage no-issue This updates the call to getMagicLink to correctly pass tokenData --- ghost/members-api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/index.js b/ghost/members-api/index.js index 7f3ad6162b..b8f05a3ac2 100644 --- a/ghost/members-api/index.js +++ b/ghost/members-api/index.js @@ -119,7 +119,7 @@ module.exports = function MembersApi({ } function getMagicLink(email) { - return magicLinkService.getMagicLink({email, subject: email, type: 'signin'}); + return magicLinkService.getMagicLink({tokenData: {email}, type: 'signin'}); } async function getMemberDataFromMagicLinkToken(token) {