-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1、新增系统配置-安全设置CURD 2、用户个人修改密码时按照安全设置校验 3、密码连续错误账号锁定 4、密码过期判断 5、数据库数据初始化
- Loading branch information
Showing
12 changed files
with
247 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
continew-admin-system/src/main/java/top/continew/admin/system/enums/OptionCodeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package top.continew.admin.system.enums; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
/** | ||
* 参数枚举 | ||
* | ||
* @author Kils | ||
* @since 2024/05/09 11:25 | ||
*/ | ||
@Getter | ||
@RequiredArgsConstructor | ||
public enum OptionCodeEnum { | ||
|
||
/** | ||
* 密码是否允许包含正反序帐户名 | ||
*/ | ||
PASSWORD_CONTAIN_NAME("password_contain_name", "密码不允许包含正反序帐户名"), | ||
/** | ||
* 密码错误锁定帐户次数 | ||
*/ | ||
PASSWORD_ERROR_COUNT("password_error_count", "密码错误锁定帐户次数"), | ||
/** | ||
* 密码有效期 | ||
*/ | ||
PASSWORD_EXPIRATION_DAYS("password_expiration_days", "密码有效期"), | ||
/** | ||
* 密码是否允许包含正反序帐户名 | ||
*/ | ||
PASSWORD_LOCK_MINUTES("password_lock_minutes", "密码错误锁定帐户的时间"), | ||
/** | ||
* 密码最小长度 | ||
*/ | ||
PASSWORD_MIN_LENGTH("password_min_length", "密码最小长度"), | ||
/** | ||
* 密码是否必须包含特殊字符 | ||
*/ | ||
PASSWORD_SPECIAL_CHAR("password_special_char", "密码是否必须包含特殊字符"), | ||
/** | ||
* 修改密码最短间隔 | ||
*/ | ||
PASSWORD_UPDATE_INTERVAL("password_update_interval", "修改密码最短间隔"); | ||
|
||
private final String value; | ||
private final String description; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.