User ... DTO extend

This commit is contained in:
2025-03-18 08:36:44 +01:00
parent b8fcdd5c3d
commit f83765378c
3 changed files with 32 additions and 8 deletions
@@ -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!;
}
}
-8
View File
@@ -16,12 +16,4 @@ namespace WorkFlowCheck.Common.DTO
public string JwtToken { get; set; } = null!; public string JwtToken { get; set; } = null!;
public required ICollection<RoleDTO> RoleDTO { get; set; } = new List<RoleDTO>(); public required ICollection<RoleDTO> RoleDTO { get; set; } = new List<RoleDTO>();
} }
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; }
}
} }
@@ -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; }
}
}