Browse Source

return next() instead of returning apiV3Error when ldap strategy is not set up

Yohei-Shiina 3 years ago
parent
commit
ef537996be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/server/routes/login-passport.js

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

@@ -180,7 +180,7 @@ module.exports = function(crowi, app) {
   const loginWithLdap = async(req, res, next) => {
   const loginWithLdap = async(req, res, next) => {
     if (!passportService.isLdapStrategySetup) {
     if (!passportService.isLdapStrategySetup) {
       debug('LdapStrategy has not been set up');
       debug('LdapStrategy has not been set up');
-      return res.apiv3Err(new ErrorV3('message.sign_in_failure'));
+      return next();
     }
     }
 
 
     if (!req.form.isValid) {
     if (!req.form.isValid) {