refactor: 优化密码策略处理

This commit is contained in:
2024-05-15 23:13:05 +08:00
parent 7c1106e8c2
commit 95047179c0
8 changed files with 190 additions and 111 deletions

View File

@@ -276,21 +276,23 @@ export interface OptionQuery {
}
/** 基础配置类型 */
export interface BasicConfigResp {
site_favicon: string
site_logo: string
site_title: string
site_copyright: string
export interface BasicConfig {
SITE_FAVICON: string
SITE_LOGO: string
SITE_TITLE: string
SITE_COPYRIGHT: string
}
/** 安全配置类型 */
export interface SecurityConfigResp {
password_contain_name: OptionResp
password_error_count: OptionResp
password_lock_minutes: OptionResp
password_min_length: OptionResp
password_special_char: OptionResp
password_update_interval: OptionResp
export interface SecurityConfig {
PASSWORD_ERROR_LOCK_COUNT: OptionResp
PASSWORD_ERROR_LOCK_MINUTES: OptionResp
PASSWORD_EXPIRATION_WARNING_DAYS: OptionResp
PASSWORD_EXPIRATION_DAYS: OptionResp
PASSWORD_REUSE_POLICY: OptionResp
PASSWORD_MIN_LENGTH: OptionResp
PASSWORD_ALLOW_CONTAIN_USERNAME: OptionResp
PASSWORD_CONTAIN_SPECIAL_CHARACTERS: OptionResp
}
/** 绑定三方账号信息 */