mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
8739749fd0
commit
f660b6a77b
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ const models = require('../../models');
|
|||
const common = require('../../lib/common');
|
||||
const session = require('./session');
|
||||
const apiKeyAuth = require('./api-key');
|
||||
const members = require('./members');
|
||||
|
||||
const authenticate = {
|
||||
// ### Authenticate Client Middleware
|
||||
|
@ -103,7 +104,7 @@ const authenticate = {
|
|||
|
||||
// ### v2 API auth middleware
|
||||
authenticateAdminAPI: [session.safeGetSession, session.getUser],
|
||||
authenticateContentApi: apiKeyAuth.content.authenticateContentApiKey
|
||||
authenticateContentApi: [apiKeyAuth.content.authenticateContentApiKey, members.authenticateMembersToken]
|
||||
};
|
||||
|
||||
module.exports = authenticate;
|
||||
|
|
Loading…
Reference in a new issue