diff --git a/src/WorkFlowCheck.Common/DTO/User2FADTO.cs b/src/WorkFlowCheck.Common/DTO/User2FADTO.cs new file mode 100644 index 0000000..3e6dc3e --- /dev/null +++ b/src/WorkFlowCheck.Common/DTO/User2FADTO.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WorkFlowCheck.Common.DTO +{ + public class User2FADTO + { + public int Id { get; set; } + public string UserName { get; set; } = null!; + public string Token2FA { get; set; } = null!; + } +} diff --git a/src/WorkFlowCheck.Common/DTO/UserDTO.cs b/src/WorkFlowCheck.Common/DTO/UserDTO.cs index e763c54..ee83e8a 100644 --- a/src/WorkFlowCheck.Common/DTO/UserDTO.cs +++ b/src/WorkFlowCheck.Common/DTO/UserDTO.cs @@ -16,12 +16,4 @@ namespace WorkFlowCheck.Common.DTO public string JwtToken { get; set; } = null!; public required ICollection RoleDTO { get; set; } = new List(); } - - public class UserSimpleDTO - { - [Required(ErrorMessage = "A felhasználónév kötelező.")] - public string UserName { get; set; } = null!; - [Required(ErrorMessage = "A jelszó megadása kötelező.")] - public string Password { get; set; } - } } diff --git a/src/WorkFlowCheck.Common/DTO/UserSimpleDTO.cs b/src/WorkFlowCheck.Common/DTO/UserSimpleDTO.cs new file mode 100644 index 0000000..e305dc1 --- /dev/null +++ b/src/WorkFlowCheck.Common/DTO/UserSimpleDTO.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WorkFlowCheck.Common.DTO +{ + public class UserSimpleDTO + { + [Required(ErrorMessage = "A felhasználónév kötelező.")] + public string UserName { get; set; } = null!; + [Required(ErrorMessage = "A jelszó megadása kötelező.")] + public string Password { get; set; } + } +}