Explorar o código

fix: LDAP missing reqToCallback

NGPixel %!s(int64=4) %!d(string=hai) anos
pai
achega
17f8071abe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)