fix: handle multiple LDAP strategies (#5116)

This commit is contained in:
Manuel
2022-03-26 02:11:24 +01:00
committed by GitHub
parent 2493fd85ae
commit 1f489a3d8e
3 changed files with 3 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ module.exports = class User extends Model {
// Authenticate
return new Promise((resolve, reject) => {
WIKI.auth.passport.authenticate(selStrategy.strategyKey, {
WIKI.auth.passport.authenticate(selStrategy.key, {
session: !strInfo.useForm,
scope: strInfo.scopes ? strInfo.scopes : null
}, async (err, user, info) => {