Добавлен playlist shared
This commit is contained in:
12
PlaylistShared/Components/Pages/Logout.razor
Normal file
12
PlaylistShared/Components/Pages/Logout.razor
Normal file
@@ -0,0 +1,12 @@
|
||||
@page "/Logout"
|
||||
@using Microsoft.AspNetCore.Identity
|
||||
@inject SignInManager<ApplicationUser> SignInManager
|
||||
@inject NavigationManager Navigation
|
||||
|
||||
@code {
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await SignInManager.SignOutAsync();
|
||||
Navigation.NavigateTo("/", true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user