Browse Source

fix: LDAP missing reqToCallback

NGPixel 4 năm trước cách đây
mục cha
commit
17f8071abe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)