123456789101112131415161718192021222324252627282930313233343536 |
- namespace Teknik.Configuration
- {
- public class UserConfig
- {
- public bool RegistrationEnabled { get; set; }
- public bool LoginEnabled { get; set; }
- public bool PasswordResetEnabled { get; set; }
- public string UsernameFilter { get; set; }
- public string UsernameFilterLabel { get; set; }
- public int MinUsernameLength { get; set; }
- public int MaxUsernameLength { get; set; }
- public int MinPasswordLength { get; set; }
- public string ReservedUsernameDefinitionFile { get; set; }
- public decimal PremiumAccountPrice { get; set; }
- public string PaymentType { get; set; }
- public bool InviteCodeRequired { get; set; }
- public IdentityServerConfig IdentityServerConfig { get; set; }
-
- public UserConfig()
- {
- RegistrationEnabled = true;
- LoginEnabled = true;
- PasswordResetEnabled = true;
- UsernameFilter = "^[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*$";
- UsernameFilterLabel = "AlphaNumeric Characters with Dashes, Underlines, and 0-1 Periods not in the beginning or end.";
- MinUsernameLength = 1;
- MaxUsernameLength = 35;
- MinPasswordLength = 2;
- ReservedUsernameDefinitionFile = string.Empty;
- PremiumAccountPrice = 0;
- PaymentType = "Donation";
- InviteCodeRequired = false;
- IdentityServerConfig = new IdentityServerConfig();
- }
- }
- }
|