require connect-flash for oidc #6132

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed May 28, 2024 at 20:00 UTC 52a21941167f0260908a1f1fcde8ccc03eb0bb96
1 file changed +1
webserver.js
+1
@@ -6766,6 +6766,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
6766 if ((domain.authstrategies.authStrategyFlags & domainAuthStrategyConsts.oidc) != 0) {
6767 let authURL = url + 'auth-oidc'
6768 parent.authLog('setupHTTPHandlers', `OIDC: Authorization URL: ${authURL}`);
6769 + obj.app.use(require('connect-flash')());
6770 obj.app.get(authURL, function (req, res, next) {
6771 var domain = getDomain(req);
6772 if (domain.passport == null) { next(); return; }