保誠-保戶業務員媒合平台
jack
2022-07-18 aa109c6e83f23a3c81ccc4645ce233492364307d
pamapi/src/main/java/com/pollex/pam/web/rest/OtpResource.java
@@ -34,6 +34,7 @@
import com.pollex.pam.service.OtpWebService;
import com.pollex.pam.business.service.dto.CustomerRegisterDTO;
import com.pollex.pam.business.service.dto.OtpResponseDTO;
import com.pollex.pam.business.web.errors.OtpLoginFailException;
import com.pollex.pam.business.web.vm.OtpLoginVM;
import com.pollex.pam.business.web.vm.VerifyOtpVM;
@@ -98,11 +99,11 @@
       
       if (!StringUtils.hasText(sessionImpCode)
            || !StringUtils.hasText(imgCode)) {
          return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();
          throw new OtpLoginFailException("驗證碼輸入錯誤");
      }
       
       if(!imgCode.equals(sessionImpCode)) {
          return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
          throw new OtpLoginFailException("驗證碼輸入錯誤");
       }
       
       otpUtilService.verifyOtp(verifyOtpParam);