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.

33 lines
814 B

  1. using System.ComponentModel.DataAnnotations;
  2. namespace CustomerOnlineRemit.Common.Model.Account
  3. {
  4. public class AccountModel
  5. {
  6. }
  7. public class LoginModel
  8. {
  9. [Required(ErrorMessage = "Username is required")]
  10. public string? UserName { get; set; }
  11. [Required(ErrorMessage = "Password is required")]
  12. public string? Password { get; set; }
  13. public bool RememberMe { get; set; } = false;
  14. public string? IpAddress { get; set; }
  15. public string? SessionId { get; set; }
  16. public string? LoginInfo { get; set; }
  17. }
  18. public class CurrentUser
  19. {
  20. public bool IsAuthenticated { get; set; }
  21. public string? UserName { get; set; }
  22. public Dictionary<string, string>? Claims { get; set; }
  23. }
  24. }