|
@@ -287,7 +287,9 @@ public class LoginService {
|
|
if(user == null){
|
|
if(user == null){
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
|
|
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);
|
|
String pwdMd5 = SecurityUtil.MD5(password);
|
|
userService.updatePassword(param.getPhoneNum(), pwdMd5);
|
|
userService.updatePassword(param.getPhoneNum(), pwdMd5);
|
|
}
|
|
}
|