Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录失败5次后锁定10分钟有误,实际只锁定了10S #5833

Closed
ma19881117 opened this issue Jan 22, 2024 · 3 comments
Closed

登录失败5次后锁定10分钟有误,实际只锁定了10S #5833

ma19881117 opened this issue Jan 22, 2024 · 3 comments

Comments

@ma19881117
Copy link

版本号:

3.6.1

前端版本:vue3版?还是 vue2版?
问题描述:

登录失败5次后锁定10分钟有误,实际只锁定了10S

截图&代码:

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@ma19881117
Copy link
Author

private void addLoginFailOvertimes(String username){
	String key = CommonConstant.LOGIN_FAIL + username;
	Object failTime = redisUtil.get(key);
	Integer val = 0;
	if(failTime!=null){
		val = Integer.parseInt(failTime.toString());
	}
	// 10分钟
	redisUtil.set(key, ++val, 10);
}

@zhangdaiscott
Copy link
Member

cr

@1298191366
Copy link

已修复,待新版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants