mirror of
https://github.com/kuaifan/dootask.git
synced 2026-07-31 10:25:59 +00:00
1.9 KiB
1.9 KiB
id, title, type, feature, scope, locale, aliases, prerequisites, related_tools, related_pages, negative, last_verified
| id | title | type | feature | scope | locale | aliases | prerequisites | related_tools | related_pages | negative | last_verified | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| system-setting.password-policy.howto | 密码策略设置 | howto | system-setting | admin | zh |
|
|
|
v1.7.90 |
密码策略设置
入口
桌面端:左上角头像 →「系统设置」→「系统设置」标签 →「帐号相关」→「密码策略」。
字段名:password_policy,枚举 simple / complex,默认 simple。
两档区别
| 档位 | 长度 | 复杂度要求 |
|---|---|---|
| simple(简单) | ≥ 6 位 | 无 |
| complex(复杂) | ≥ 6 位 | 必须混合:不能全是数字、不能全是字母、不能仅数字+大写、不能仅数字+小写 |
通用约束:所有档位下密码长度上限 32 位。
对存量密码的影响
策略只在「设置密码」「修改密码」「注册」时校验。改成 complex 后:
- 已有用户登录不受影响(旧弱密码仍能用)
- 用户下次主动改密码必须满足新规则
- 管理员代设密码同样要满足新规则
如果要强制全员升级密码,需要管理员手动通知用户修改,没有内置「强制重置」按钮。
操作步骤
- 进入「系统设置」→「系统设置」→「帐号相关」
- 「密码策略」选
simple或complex - 页面底部「提交」保存
不支持
- 没有「禁用最近 N 次旧密码」「定期强制改密」等高级规则
- 没有按账号 / 部门差异化策略,全局生效