The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserConfig.cs 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. namespace Teknik.Configuration
  2. {
  3. public class UserConfig
  4. {
  5. public bool RegistrationEnabled { get; set; }
  6. public bool LoginEnabled { get; set; }
  7. public bool PasswordResetEnabled { get; set; }
  8. public string UsernameFilter { get; set; }
  9. public string UsernameFilterLabel { get; set; }
  10. public int MinUsernameLength { get; set; }
  11. public int MaxUsernameLength { get; set; }
  12. public string ReservedUsernameDefinitionFile { get; set; }
  13. public decimal PremiumAccountPrice { get; set; }
  14. public string PaymentType { get; set; }
  15. public bool InviteCodeRequired { get; set; }
  16. public UserConfig()
  17. {
  18. RegistrationEnabled = true;
  19. LoginEnabled = true;
  20. PasswordResetEnabled = true;
  21. UsernameFilter = "^[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*$";
  22. UsernameFilterLabel = "AlphaNumeric Characters with Dashes, Underlines, and 0-1 Periods not in the beginning or end.";
  23. MinUsernameLength = 1;
  24. MaxUsernameLength = 35;
  25. ReservedUsernameDefinitionFile = string.Empty;
  26. PremiumAccountPrice = 0;
  27. PaymentType = "Donation";
  28. InviteCodeRequired = false;
  29. }
  30. }
  31. }