添加项目文件。

This commit is contained in:
2023-03-13 15:00:34 +08:00
parent 42bf06ca3e
commit 1d73df3235
1205 changed files with 185078 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
using JNPF.Common.Enums;
using JNPF.DependencyInjection;
using JNPF.JsonSerialization;
using JNPF.Systems.Entitys.Enum;
using Newtonsoft.Json;
namespace JNPF.OAuth.Model;
/// <summary>
/// 登录时需要的系统配置.
/// </summary>
[SuppressSniffer]
public class SysConfigByOAuthModel
{
/// <summary>
/// 是否开启验证码0不启用1启用.
/// </summary>
[JsonConverter(typeof(BoolJsonConverter))]
public bool enableVerificationCode { get; set; }
/// <summary>
/// 错误策略1账号锁定2延时登录.
/// </summary>
public ErrorStrategy lockType { get; set; }
/// <summary>
/// 错误密码次数.
/// </summary>
public int passwordErrorsNumber { get; set; } = 6;
/// <summary>
/// 延时登录时间(分钟).
/// </summary>
public int lockTime { get; set; } = 10;
/// <summary>
/// 是否开启白名单验证.
/// </summary>
[JsonConverter(typeof(BoolJsonConverter))]
public bool whitelistSwitch { get; set; }
/// <summary>
/// 白名单.
/// </summary>
public string whiteListIp { get; set; }
/// <summary>
/// 超时登出.
/// </summary>
public long tokenTimeout { get; set; }
/// <summary>
/// 单一登录方式1后登录踢出先登录 2同时登录.
/// </summary>
public LoginMethod singleLogin { get; set; }
}