diff --git a/core/server/services/members/config.js b/core/server/services/members/config.js index ae7168acb9..10ae69228c 100644 --- a/core/server/services/members/config.js +++ b/core/server/services/members/config.js @@ -216,7 +216,7 @@ class MembersConfigProvider { getTokenConfig() { const {href: membersApiUrl} = new URL( - this._urlUtils.getApiPath({version: 'v3', type: 'members'}), + this._urlUtils.getApiPath({version: 'v4', type: 'members'}), this._urlUtils.urlFor('admin', true) ); diff --git a/core/server/services/members/settings.js b/core/server/services/members/settings.js index 827467486f..d377926f9d 100644 --- a/core/server/services/members/settings.js +++ b/core/server/services/members/settings.js @@ -52,7 +52,7 @@ function createSettingsInstance(config) { return updateEmailTemplate({url, email, siteTitle}); }, getSigninURL(token, type) { - const signinURL = new URL(getApiUrl({version: 'v3', type: 'admin'})); + const signinURL = new URL(getApiUrl({version: 'v4', type: 'admin'})); signinURL.pathname = path.join(signinURL.pathname, '/settings/members/email/'); signinURL.searchParams.set('token', token); signinURL.searchParams.set('action', type);