保誠-保戶業務員媒合平台
jack
2024-03-05 b832880e1fcf3307387d53106078498f68a95853
pamapi/src/main/java/com/pollex/pam/web/rest/OtpResource.java
@@ -89,6 +89,8 @@
          throw new OtpLoginFailException("驗證碼輸入錯誤");
       }
       
       session.setAttribute("img_code", null);
       OtpResponseDTO otpResponse;
        if(applicationProperty.isMockLogin()) {
            otpResponse = getMockSendOtpResponse();
@@ -101,6 +103,7 @@
            return ResponseEntity.status(HttpStatus.BAD_REQUEST).body("can not support this login type, loginType = " + login.getLoginType().name());
        }
        otpTmpService.createOtpTmp(login.getAccount(), otpResponse.getIndexKey());
        return new ResponseEntity<>(otpResponse, HttpStatus.OK);
    }