refactor(api): rename type
This commit is contained in:
@@ -11,7 +11,7 @@ internal static class Endpoint
|
|||||||
|
|
||||||
private static async Task<IResult> HandleAsync(
|
private static async Task<IResult> HandleAsync(
|
||||||
HttpContext httpContext,
|
HttpContext httpContext,
|
||||||
[FromBody] LoginRequest loginRequest,
|
[FromBody] Request loginRequest,
|
||||||
[FromServices] AppDbContext appDbContext,
|
[FromServices] AppDbContext appDbContext,
|
||||||
[FromServices] IPasswordHasher passwordHasher,
|
[FromServices] IPasswordHasher passwordHasher,
|
||||||
[FromServices] ITokenGenerator tokenService
|
[FromServices] ITokenGenerator tokenService
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace FiscalOS.API.Login;
|
namespace FiscalOS.API.Login;
|
||||||
|
|
||||||
public record LoginRequest : IValidatableObject
|
public record Request : IValidatableObject
|
||||||
{
|
{
|
||||||
public string Username { get; init; } = string.Empty;
|
public string Username { get; init; } = string.Empty;
|
||||||
public string Password { get; init; } = string.Empty;
|
public string Password { get; init; } = string.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user