diff --git a/src/server/middleware/Authenticator.js b/src/server/middleware/Authenticator.js index b708654..e360158 100644 --- a/src/server/middleware/Authenticator.js +++ b/src/server/middleware/Authenticator.js @@ -68,10 +68,10 @@ class Authenticator { * * @param {string} name Name of strategy used, auth middleware is also bound to authenticator[name] * @param {Strategy} strategy Passport strategy - * @param {object} [{ failureRedirect = '/login/fail', successRedirect = '/home' }={}] + * @param {object} [{ failureRedirect = '/api/login/fail', successRedirect = '/home' }={}] * @memberof Authenticator */ - addStrategy (name, strategy, { failureRedirect = '/login/fail', successRedirect } = {}) { + addStrategy (name, strategy, { failureRedirect = '/api/login/fail', successRedirect } = {}) { this.logger.info(`Adding ${name} authentication strategy`); this.passport.use(name, strategy); // Quick access getter to get the middleware for authenticating