170 Star 1.9K Fork 659

dromara / mayfly-go

2023-06-28 21:43
1240250 objs 1644925867 Coder慌

1、登录支持OTP双因素校验与登录失败锁定账号等(新增如下系统配置)
INSERT INTO t_sys_config (name, key, params, value, remark, create_time, creator_id, creator, update_time, modifier_id, modifier) VALUES('账号登录安全设置', 'AccountLoginSecurity', '[{"name":"登录验证码","model":"useCaptcha","placeholder":"是否启用登录验证码","options":"true,false"},{"name":"双因素校验(OTP)","model":"useOtp","placeholder":"是否启用双因素(OTP)校验","options":"true,false"},{"name":"OTP签发人","model":"otpIssuer","placeholder":"otp签发人"},{"name":"允许失败次数","model":"loginFailCount","placeholder":"登录失败n次后禁止登录"},{"name":"禁止登录时间","model":"loginFailMin","placeholder":"登录失败指定次数后禁止m分钟内再次登录"}]', '{"useCaptcha":"true","useOtp":"false","loginFailCount":"5","loginFailMin":"10","otpIssuer":"mayfly-go"}', '系统账号登录相关安全设置', '2023-06-17 11:02:11', 1, 'admin', '2023-06-17 14:18:07', 1, 'admin');

(新增OTP秘钥字段)
ALTER TABLE t_sys_account ADD otp_secret varchar(100) NULL;

2、修复系统配置无法进行配置单个参数的配置
3、统一分页表格组件、代码优化

Go
1
https://gitee.com/dromara/mayfly-go.git
git@gitee.com:dromara/mayfly-go.git
dromara
mayfly-go
mayfly-go

Search

53164aa7 5694891 3bd8fe86 5694891