mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:28 -06:00
fix: handle multiple LDAP strategies (#5116)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user