[CHANGE] Implementing managers. repositories
This commit is contained in:
7
DotBased.AspNet.Authority/Models/Options/ListOption.cs
Normal file
7
DotBased.AspNet.Authority/Models/Options/ListOption.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace DotBased.AspNet.Authority.Models.Options;
|
||||
|
||||
public enum ListOption
|
||||
{
|
||||
Blacklist,
|
||||
Whitelist
|
||||
}
|
@@ -4,7 +4,8 @@ public class UserOptions
|
||||
{
|
||||
public bool EnableRegister { get; set; }
|
||||
public bool RequireUniqueEmail { get; set; }
|
||||
public string AllowedCharacters { get; set; } = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@";
|
||||
public string UserNameCharacters { get; set; } = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@";
|
||||
public ListOption UserNameCharacterListType { get; set; } = ListOption.Whitelist;
|
||||
|
||||
public List<string> UserNameBlackList { get; set; } = ["admin", "administrator", "dev", "developer"];
|
||||
public StringComparer UserNameBlackListComparer { get; set; } = StringComparer.OrdinalIgnoreCase;
|
||||
|
Reference in New Issue
Block a user