fix: handle multiple LDAP strategies (#5116)

This commit is contained in:
Manuel authored and GitHub committed 2022-03-25 21:11:24 -04:00
1 parent 2493fd85ae
commit 1f489a3d8e
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ module.exports = {
const strategy = require(`../modules/authentication/${stg.strategyKey}/authentication.js`)
stg.config.callbackURL = `${WIKI.config.host}/login/${stg.key}/callback`
stg.config.key = stg.key;
strategy.init(passport, stg.config)
strategy.config = stg.config