From f83765378cdc6b6c926e2a7918abc4f8f25ac0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Szab=C3=B3?= Date: Tue, 18 Mar 2025 08:36:44 +0100 Subject: [PATCH] User ... DTO extend --- src/WorkFlowCheck.Common/DTO/User2FADTO.cs | 15 +++++++++++++++ src/WorkFlowCheck.Common/DTO/UserDTO.cs | 8 -------- src/WorkFlowCheck.Common/DTO/UserSimpleDTO.cs | 17 +++++++++++++++++ 3 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 src/WorkFlowCheck.Common/DTO/User2FADTO.cs create mode 100644 src/WorkFlowCheck.Common/DTO/UserSimpleDTO.cs 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; } + } +}