Commit 44e49ebd by T

密码加密调整-MD5加密后再外包encrypt:AES-128加密

parent aeec8ace
......@@ -152,7 +152,13 @@ public class AuthenticationController {
if (errCount != "" && Integer.parseInt(errCount) == 3){
throw new AccountExpiredException("在当前IP下该账号的访问被禁止, 请在30分钟后重试!");
}
if(!jwtUser.getPassword().equals(authUser.getPassword())){
String password = "";
try {
password = AesEncode.desEncrypt(authUser.getPassword());
}catch(Exception e){
throw new BadRequestException("解密错误");
}
if(!jwtUser.getPassword().equals(password)){
if (errCount.isEmpty()) {
redisService.saveCode(authUser.getUsername() + ip, 1);
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论