The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

UserConfig.cs 1.0KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Teknik.Configuration
  7. {
  8. public class UserConfig
  9. {
  10. public bool RegistrationEnabled { get; set; }
  11. public bool LoginEnabled { get; set; }
  12. public string UsernameFilter { get; set; }
  13. public string UsernameFilterLabel { get; set; }
  14. public int MinUsernameLength { get; set; }
  15. public int MaxUsernameLength { get; set; }
  16. public string ReservedUsernameDefinitionFile { get; set; }
  17. public UserConfig()
  18. {
  19. RegistrationEnabled = true;
  20. LoginEnabled = 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. }
  27. }
  28. }