Browse Source

校验通过,删除验证码

lyhzzz 2 years ago
parent
commit
6a7bf8dc58
1 changed files with 1 additions and 0 deletions
  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);