From 18d52123efe5f1271a2d0fd78db82600ac179769 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 20 Nov 2022 18:37:07 +0200 Subject: [PATCH] redirect fails to the api login endpoint --- src/server/middleware/Authenticator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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