From 52a21941167f0260908a1f1fcde8ccc03eb0bb96 Mon Sep 17 00:00:00 2001 From: si458 Date: Tue, 28 May 2024 20:00:33 +0100 Subject: [PATCH] require connect-flash for oidc #6132 Signed-off-by: si458 --- webserver.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webserver.js b/webserver.js index 0fa43117..b67995fe 100644 --- a/webserver.js +++ b/webserver.js @@ -6766,6 +6766,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF if ((domain.authstrategies.authStrategyFlags & domainAuthStrategyConsts.oidc) != 0) { let authURL = url + 'auth-oidc' parent.authLog('setupHTTPHandlers', `OIDC: Authorization URL: ${authURL}`); + obj.app.use(require('connect-flash')()); obj.app.get(authURL, function (req, res, next) { var domain = getDomain(req); if (domain.passport == null) { next(); return; }