Browse Source

火调修改密码无需验证码

lyhzzz 2 years ago
parent
commit
fd75710537
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/java/com/fdkankan/ucenter/service/impl/LoginService.java

+ 3 - 1
src/main/java/com/fdkankan/ucenter/service/impl/LoginService.java

@@ -287,7 +287,9 @@ public class LoginService {
         if(user == null){
             throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
         }
-        checkSms(param.getMsgAuthCode(),param.getPhoneNum(),true);
+        if(!param.getMsgAuthCode().equals(registerValidCode)){
+            checkSms(param.getMsgAuthCode(),param.getPhoneNum(),true);
+        }
         String pwdMd5 = SecurityUtil.MD5(password);
         userService.updatePassword(param.getPhoneNum(), pwdMd5);
     }