editing Login.cs
This commit is contained in:
9
ApiEfCoreLibrary/DTO/Login/Request/CreateLoginDto.cs
Normal file
9
ApiEfCoreLibrary/DTO/Login/Request/CreateLoginDto.cs
Normal 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; }
|
||||
}
|
10
ApiEfCoreLibrary/DTO/Login/Response/GetLoginDto.cs
Normal file
10
ApiEfCoreLibrary/DTO/Login/Response/GetLoginDto.cs
Normal 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; }
|
||||
}
|
@@ -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; }
|
||||
}
|
Reference in New Issue
Block a user