| | |
| | | @Autowired |
| | | OtpTmpService otpTmpService; |
| | | |
| | | @Autowired |
| | | LoginRecordService loginRecordService; |
| | | |
| | | @Transactional |
| | | public void verifyOtp(VerifyOtpVM verifyOtpParam) { |
| | | verifyOtp(verifyOtpParam.getAccount(), verifyOtpParam.getIndexKey(), verifyOtpParam.getOtpCode()); |
| | |
| | | } |
| | | else { |
| | | log.info("otp login fail... , account = {}, error code = {}, failReason = {}", account, otpResponseDTO.getFailCode(), otpResponseDTO.getFailReason()); |
| | | loginRecordService.saveOTPLoginFailRecord(account, otpResponseDTO.getFailReason()); |
| | | throw new OtpLoginFailException(otpResponseDTO.getFailReason()); |
| | | throw new OtpLoginFailException(otpResponseDTO.getFailCode()); |
| | | } |
| | | } |
| | | loginRecordService.saveOTPLoginSuccessRecord(account); |
| | | setVerrifiedOtpTmp(account, indexKey); |
| | | } |
| | | |