Feature/admin (#831)

* fix redirect to login for admin page
fix logout

* add admin part url

Co-authored-by: cedri <cedri@BAS>
This commit is contained in:
Cédric Michel
2022-12-22 16:03:16 +01:00
committed by GitHub
parent 2e6fc6ca44
commit 61d2d6cdd0
6 changed files with 49 additions and 17 deletions

View File

@@ -7,7 +7,7 @@
protected override async Task OnInitializedAsync()
{
await HttpClient.PostAsync("Identity/Account/Logout", null);
await HttpClient.PostAsync("User/Logout", null);
await new Route(JSRuntime).RouteOutside("/Identity/Account/Login");
}