editing Login.cs

This commit is contained in:
2025-10-13 14:10:24 +02:00
parent 93729cfaf0
commit e359084293
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
namespace ApiEfCoreLibrary.DTO.Login.Request;
public class CreateLoginDto
{
public string? Username { get; set; }
public string? FullName { get; set; }
public string? Password { get; set; }
public string? Salt { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace ApiEfCoreLibrary.DTO.Login.Response;
public class GetLoginDto
{
public int Id { get; set; }
public string? Username { get; set; }
public string? FullName { get; set; }
public string? Password { get; set; }
public string? Salt { get; set; }
}

View File

@@ -7,5 +7,5 @@ public class Login
[Required, MaxLength(100)] public string? Username { get; set; } [Required, MaxLength(100)] public string? Username { get; set; }
[Required, MaxLength(200)] public string? FullName { get; set; } [Required, MaxLength(200)] public string? FullName { get; set; }
[Required, MaxLength(255)] public string? Password { get; set; } [Required, MaxLength(255)] public string? Password { get; set; }
[Required, MaxLength(24)] public string? Salt { get; set; } [Required, MinLength(24), MaxLength(24)] public string? Salt { get; set; }
} }