2023-12-16 14:10:11 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Rbac.Domain.Shared.Options
|
|
|
|
|
|
{
|
|
|
|
|
|
public class RbacOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 超级管理员默认密码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string AdminPassword { get; set; } = "123456";
|
2023-12-20 21:01:35 +08:00
|
|
|
|
|
2024-02-08 19:48:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 租户超级管理员默认密码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string TenantAdminPassword { get; set; } = "123456";
|
|
|
|
|
|
|
2023-12-20 21:01:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否开启登录验证码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool EnableCaptcha { get; set; } = false;
|
2023-12-20 21:43:16 +08:00
|
|
|
|
|
2025-07-13 21:26:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public CaptchaTypeEnum CaptchaType { get; set; } = CaptchaTypeEnum.Phone;
|
|
|
|
|
|
|
2023-12-20 21:43:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否开启用户注册功能
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool EnableRegister { get; set; } = false;
|
2023-12-22 18:57:04 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否开启数据库备份
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool EnableDataBaseBackup { get; set; } = false;
|
2023-12-16 14:10:11 +08:00
|
|
|
|
}
|
2025-07-13 21:26:46 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum CaptchaTypeEnum
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 手机号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Phone = 0,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 邮箱
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Email = 1,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|