😎优化登录时密码错误次数逻辑
This commit is contained in:
parent
9304f81381
commit
11723482dc
@ -69,7 +69,7 @@ public class SysAuthService : IDynamicApiController, ITransient
|
||||
// 若未配置或误配置为0、负数, 则正确密码也无法登录
|
||||
if (passwordMaxErrorTimes < 1)
|
||||
passwordMaxErrorTimes = 1;
|
||||
if (passwordErrorTimes >= passwordMaxErrorTimes)
|
||||
if (passwordErrorTimes > passwordMaxErrorTimes)
|
||||
throw Oops.Oh(ErrorCodeEnum.D1027);
|
||||
|
||||
// 是否开启验证码
|
||||
|
||||
Loading…
Reference in New Issue
Block a user