feat: 添加用户状态效验及验证码
This commit is contained in:
@@ -16,6 +16,7 @@ namespace Yi.Framework.Rbac.Domain.Shared.Consts
|
||||
public const string Login_User_No_Exist = "登录失败!用户名不存在!";
|
||||
public const string Login_Passworld_Error = "密码为空,添加失败!";
|
||||
public const string User_Exist = "用户已经存在,添加失败!";
|
||||
public const string State_Is_State = "该用户已被禁用,请联系管理员进行恢复";
|
||||
public const string No_Permission = "登录禁用!该用户分配无任何权限,无意义登录!";
|
||||
public const string No_Role = "登录禁用!该用户分配无任何角色,无意义登录!";
|
||||
|
||||
|
||||
@@ -12,5 +12,10 @@ namespace Yi.Framework.Rbac.Domain.Shared.Options
|
||||
/// 超级管理员默认密码
|
||||
/// </summary>
|
||||
public string AdminPassword { get; set; } = "123456";
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启登录验证码
|
||||
/// </summary>
|
||||
public bool EnableCaptcha { get; set; } = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user