fix: remove fake auth check
This commit is contained in:
@@ -14,9 +14,6 @@ internal static class Endpoint
|
|||||||
[FromServices] AppDbContext appDbContext
|
[FromServices] AppDbContext appDbContext
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const string ADMIN_USERNAME = "Stevan";
|
|
||||||
const string ADMIN_PASSWORD = "@Password1";
|
|
||||||
|
|
||||||
// TODO: Implement actual auth flow
|
// TODO: Implement actual auth flow
|
||||||
// 1. We want to make sure that
|
// 1. We want to make sure that
|
||||||
// the user exists
|
// the user exists
|
||||||
@@ -40,11 +37,6 @@ internal static class Endpoint
|
|||||||
return Results.Unauthorized();
|
return Results.Unauthorized();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loginRequest.Username is not ADMIN_USERNAME || loginRequest.Password is not ADMIN_PASSWORD)
|
|
||||||
{
|
|
||||||
return Results.Unauthorized();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Results.Ok();
|
return Results.Ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user