Browse Source

return message

itizawa 6 years ago
parent
commit
303baad935
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/server/routes/login-passport.js

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

@@ -89,7 +89,8 @@ module.exports = function(crowi, app) {
       ldapAccountInfo = await promisifiedPassportAuthentication(strategyName, req, res);
       ldapAccountInfo = await promisifiedPassportAuthentication(strategyName, req, res);
     }
     }
     catch (err) {
     catch (err) {
-      return next(err);
+      debug(err.message);
+      return loginFailureHandler(req, res, 'Sign in failure due to connect ldap failure.');
     }
     }
 
 
     // check groups for LDAP
     // check groups for LDAP