浏览代码

fix: LDAP missing reqToCallback

NGPixel 4 年之前
父节点
当前提交
17f8071abe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/modules/authentication/ldap/authentication.js

+ 1 - 1
server/modules/authentication/ldap/authentication.js

@@ -27,7 +27,7 @@ module.exports = {
         },
         usernameField: 'email',
         passwordField: 'password',
-        passReqToCallback: false
+        passReqToCallback: true
       }, async (req, profile, cb) => {
         try {
           const userId = _.get(profile, conf.mappingUID, null)