|
|
@ -10,10 +10,7 @@ import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.form.GovWebLoginFormDTO; |
|
|
|
import com.epmet.dto.form.GovWebOperLoginFormDTO; |
|
|
|
import com.epmet.dto.form.LoginByPassWordFormDTO; |
|
|
|
import com.epmet.dto.form.PasswordLoginUserInfoFormDTO; |
|
|
|
import com.epmet.dto.result.GovWebOperLoginResultDTO; |
|
|
|
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO; |
|
|
|
import com.epmet.dto.result.UserTokenResultDTO; |
|
|
|
import com.epmet.feign.EpmetUserFeignClient; |
|
|
|
import com.epmet.jwt.JwtTokenProperties; |
|
|
@ -65,7 +62,7 @@ public class GovWebServiceImpl implements GovWebService { |
|
|
|
//2.验证码校验
|
|
|
|
boolean flag = captchaService.validate(formDTO.getUuid(), formDTO.getCaptcha()); |
|
|
|
if (!flag) { |
|
|
|
logger.error(String.format("用户%s登录,验证码输入错误,暂时放行", formDTO.getPhone())); |
|
|
|
logger.warn(String.format("用户%s登录,验证码输入错误", formDTO.getPhone())); |
|
|
|
//开启验证码校验
|
|
|
|
throw new RenException(EpmetErrorCode.ERR10019.getCode()); |
|
|
|
} |
|
|
@ -84,7 +81,7 @@ public class GovWebServiceImpl implements GovWebService { |
|
|
|
//4.密码是否正确
|
|
|
|
//密码错误
|
|
|
|
if (!PasswordUtils.matches(formDTO.getPassword(), resultDTO.getPassWord())) { |
|
|
|
logger.error("登陆密码错误"); |
|
|
|
logger.warn("登陆密码错误"); |
|
|
|
throw new RenException(EpmetErrorCode.ERR10004.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|