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.4KB

12345678910111213141516171819202122232425262728293031323334
  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 IdentityServerConfig IdentityServerConfig { get; set; }
  17. public UserConfig()
  18. {
  19. RegistrationEnabled = true;
  20. LoginEnabled = true;
  21. PasswordResetEnabled = true;
  22. UsernameFilter = "^[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*$";
  23. UsernameFilterLabel = "AlphaNumeric Characters with Dashes, Underlines, and 0-1 Periods not in the beginning or end.";
  24. MinUsernameLength = 1;
  25. MaxUsernameLength = 35;
  26. ReservedUsernameDefinitionFile = string.Empty;
  27. PremiumAccountPrice = 0;
  28. PaymentType = "Donation";
  29. InviteCodeRequired = false;
  30. IdentityServerConfig = new IdentityServerConfig();
  31. }
  32. }
  33. }