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.

SecuritySettings.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Web;
  6. using Teknik.Attributes;
  7. namespace Teknik.Areas.Users.Models
  8. {
  9. public class SecuritySettings
  10. {
  11. [Key]
  12. public int UserId { get; set; }
  13. public virtual User User { get; set; }
  14. public virtual UserSettings UserSettings { get; set; }
  15. public virtual BlogSettings BlogSettings { get; set; }
  16. public virtual UploadSettings UploadSettings { get; set; }
  17. public string RecoveryEmail { get; set; }
  18. public bool RecoveryVerified { get; set; }
  19. public bool AllowTrustedDevices { get; set; }
  20. public bool TwoFactorEnabled { get; set; }
  21. [CaseSensitive]
  22. public string TwoFactorKey { get; set; }
  23. public string PGPSignature { get; set; }
  24. public SecuritySettings()
  25. {
  26. RecoveryEmail = string.Empty;
  27. RecoveryVerified = false;
  28. AllowTrustedDevices = false;
  29. TwoFactorEnabled = false;
  30. TwoFactorKey = string.Empty;
  31. PGPSignature = string.Empty;
  32. }
  33. }
  34. }