소스 검색

校验通过,删除验证码

lyhzzz 2 년 전
부모
커밋
6a7bf8dc58
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/fdkankan/fusion/controller/LoginController.java

+ 1 - 0
src/main/java/com/fdkankan/fusion/controller/LoginController.java

@@ -53,6 +53,7 @@ public class LoginController extends BaseController{
         if(!redisUtil.hasKey(String.format(RedisKeyUtil.loginAuthCode,request.getCode()))){
             throw new BusinessException(ResultCode.LOGIN_AUTH_NOT_EXIST);
         }
+        redisUtil.del(String.format(RedisKeyUtil.loginAuthCode,request.getCode()));
         TmUser tmUser = tmUserService.getByUserName(request.getPhoneNum());
         if(tmUser == null){
             throw new BusinessException(ResultCode.PASSWORD_ERROR);