记得上下班打卡 | git大法好,push需谨慎

Commit f3350f3f authored by 张国柄's avatar 张国柄

~api:NFT安全密码校验顺序调整;

parent b07a6543
......@@ -2758,11 +2758,14 @@ public class GoblinRedisUtils {
errorMessage = ErrorMapping.get("140113");
return ResponseDto.failure(errorMessage.getCode(), String.format(errorMessage.getMessage(), expire / 60 + 1));
}
if (userSafeConfigDto.getPasswd().equals(DigestUtils.md5DigestAsHex(inputPasswd.concat(passwdSalt).getBytes(StandardCharsets.UTF_8)))) {
return ResponseDto.success();
long validFailedNum = redisUtil.incr(GoblinRedisConst.USER_SAFE_LK_PASSWD.concat(uid), 1);
if (validFailedNum <= 5) {
if (userSafeConfigDto.getPasswd().equals(DigestUtils.md5DigestAsHex(inputPasswd.concat(passwdSalt).getBytes(StandardCharsets.UTF_8)))) {
redisUtil.del(GoblinRedisConst.USER_SAFE_LK_PASSWD.concat(uid));
return ResponseDto.success();
}
}
LocalDateTime currentDateTime, tomorrowStartDateTime;
long validFailedNum = redisUtil.incr(GoblinRedisConst.USER_SAFE_LK_PASSWD.concat(uid), 1);
Integer passwdtlTimelimit;
switch (Math.toIntExact(validFailedNum)) {
case 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment