Skip to content

Commit

Permalink
Add /Account/Logout page
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 17, 2023
1 parent 828203a commit 5337fb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/Components/Identity/LogoutForm.razor
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
if (SignInManager.IsSignedIn(user))
{
await SignInManager.SignOutAsync();
RedirectManager.RedirectTo(ReturnUrl ?? "/");
RedirectManager.RedirectTo(ReturnUrl ?? "/Account/Logout");
}
}
}
10 changes: 10 additions & 0 deletions MyApp/Pages/Account/Logout.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@page "/Account/Logout"

<PageTitle>Signed out</PageTitle>

<div class="mt-8 mx-auto max-w-lg">
<div>
<Heading1>Signed out</Heading1>
<p class="my-4">You have successfully signed out.</p>
</div>
</div>

0 comments on commit 5337fb8

Please sign in to comment.