diff --git a/ApiEfCoreLibrary/DTO/Login/Request/CreateLoginDto.cs b/ApiEfCoreLibrary/DTO/Login/Request/CreateLoginDto.cs new file mode 100644 index 0000000..597e97d --- /dev/null +++ b/ApiEfCoreLibrary/DTO/Login/Request/CreateLoginDto.cs @@ -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; } +} \ No newline at end of file diff --git a/ApiEfCoreLibrary/DTO/Login/Response/GetLoginDto.cs b/ApiEfCoreLibrary/DTO/Login/Response/GetLoginDto.cs new file mode 100644 index 0000000..a650e6a --- /dev/null +++ b/ApiEfCoreLibrary/DTO/Login/Response/GetLoginDto.cs @@ -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; } +} \ No newline at end of file diff --git a/ApiEfCoreLibrary/Models/Login.cs b/ApiEfCoreLibrary/Models/Login.cs index 1adaca1..62a2baf 100644 --- a/ApiEfCoreLibrary/Models/Login.cs +++ b/ApiEfCoreLibrary/Models/Login.cs @@ -7,5 +7,5 @@ public class Login [Required, MaxLength(100)] public string? Username { get; set; } [Required, MaxLength(200)] public string? FullName { 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; } } \ No newline at end of file