feat: 密码强度多级校验 — low/medium/high/very_high
- site_settings 新增 password.strength 配置项 - 四级:low(len>=8) / medium(两类) / high(三类+无连续) / very_high(四类+无连续) - 连续字符检查:重复/升序/降序/键盘水平/键盘垂直序列 - 注册和改密接口统一读取配置 - 前端 register.js 动态校验 + 管理后台安全设置区
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">密码</label>
|
||||
<input type="password" id="password" placeholder="至少 8 位,包含大小写字母与数字" required minlength="8">
|
||||
<input type="password" id="password" placeholder="至少 8 位,包含大小写字母与数字" required minlength="8" data-pw-level="{{.PasswordStrength}}">
|
||||
<span class="form-error" id="passwordError">密码至少 8 位,需包含大小写字母与数字</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user