Przeglądaj źródła

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

Yohei-Shiina 3 lat temu
rodzic
commit
ef537996be
1 zmienionych plików z 1 dodań i 1 usunięć
  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) => {
     if (!passportService.isLdapStrategySetup) {
       debug('LdapStrategy has not been set up');
-      return res.apiv3Err(new ErrorV3('message.sign_in_failure'));
+      return next();
     }
 
     if (!req.form.isValid) {