use settings for defining sort order and add methods to calculate metric fuel consumption.

This commit is contained in:
ivancheahhh
2024-01-04 14:12:30 -07:00
parent 98f14c1cc0
commit 3306fefd4d
8 changed files with 68 additions and 26 deletions

View File

@@ -36,8 +36,14 @@ namespace CarCareTracker.Middleware
return AuthenticateResult.Success(ticket);
} else
{
//auth is enabled by user, we will have to authenticate the user via a ticket.
return AuthenticateResult.Fail("Invalid credentials");
}
}
protected override Task HandleChallengeAsync(AuthenticationProperties properties)
{
Response.Redirect("/Login/Index");
return Task.CompletedTask;
}
}
}