diff --git a/src/Auth/AuthAPI/Program.cs b/src/Auth/AuthAPI/Program.cs index 600ec4b..992dfcf 100644 --- a/src/Auth/AuthAPI/Program.cs +++ b/src/Auth/AuthAPI/Program.cs @@ -32,7 +32,7 @@ app.MapGet("/validate", async ( return Results.StatusCode((int)response.StatusCode); var content = await response.Content.ReadAsStringAsync(); - return Results.Ok(content.Contains("\"member_found\":true,")); + return content.Contains("\"member_found\":true,") ? Results.Ok() : Results.NotFound(); }) .WithName("ValidateMember"); diff --git a/src/Registration/Registration.API/Controllers/RegistrationController.cs b/src/Registration/Registration.API/Controllers/RegistrationController.cs index 44e3d1a..fca730b 100644 --- a/src/Registration/Registration.API/Controllers/RegistrationController.cs +++ b/src/Registration/Registration.API/Controllers/RegistrationController.cs @@ -19,7 +19,7 @@ namespace Registration.API.Controllers } else { - return NoContent(); + return NotFound(); } }