소스 검색

Entrust this logic to isEnableLoginWithLocalOrLdapMiddleware

Shun Miyazawa 3 년 전
부모
커밋
3595eebe4a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/server/routes/login-passport.js

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

@@ -328,7 +328,7 @@ module.exports = function(crowi, app) {
   const loginWithLocal = (req, res, next) => {
     if (!passportService.isLocalStrategySetup) {
       debug('LocalStrategy has not been set up');
-      return res.apiv3Err(new ErrorV3('message.strategy_has_not_been_set_up', '', undefined, { strategy: 'LocalStrategy' }), 405);
+      return next();
     }
 
     if (!req.form.isValid) {