2024-12-23 00:59:13 +01:00
|
|
|
namespace DotBased.AspNet.Authority.Models.Options;
|
|
|
|
|
|
|
|
public class UserOptions
|
|
|
|
{
|
|
|
|
public bool EnableRegister { get; set; }
|
|
|
|
public bool RequireUniqueEmail { get; set; }
|
2025-01-03 00:14:12 +01:00
|
|
|
public string UserNameCharacters { get; set; } = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@";
|
|
|
|
public ListOption UserNameCharacterListType { get; set; } = ListOption.Whitelist;
|
2024-12-23 00:59:13 +01:00
|
|
|
|
|
|
|
public List<string> UserNameBlackList { get; set; } = ["admin", "administrator", "dev", "developer"];
|
|
|
|
public StringComparer UserNameBlackListComparer { get; set; } = StringComparer.OrdinalIgnoreCase;
|
|
|
|
}
|