Browse Source

return to original code

kaori 3 years ago
parent
commit
1f00a848df
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/app/src/server/routes/login-passport.js

+ 1 - 2
packages/app/src/server/routes/login-passport.js

@@ -110,8 +110,7 @@ module.exports = function(crowi, app) {
     const attrMapUsername = passportService.getLdapAttrNameMappedToUsername();
     const attrMapUsername = passportService.getLdapAttrNameMappedToUsername();
     const attrMapName = passportService.getLdapAttrNameMappedToName();
     const attrMapName = passportService.getLdapAttrNameMappedToName();
     const attrMapMail = passportService.getLdapAttrNameMappedToMail();
     const attrMapMail = passportService.getLdapAttrNameMappedToMail();
-    // const usernameToBeRegistered = ldapAccountInfo[attrMapUsername];
-    const usernameToBeRegistered = null;
+    const usernameToBeRegistered = ldapAccountInfo[attrMapUsername];
     const nameToBeRegistered = ldapAccountInfo[attrMapName];
     const nameToBeRegistered = ldapAccountInfo[attrMapName];
     const mailToBeRegistered = ldapAccountInfo[attrMapMail];
     const mailToBeRegistered = ldapAccountInfo[attrMapMail];