Created
May 3, 2018 19:08
-
-
Save explorer14/b11589ac6fc2b8d74a9046d1f64ba931 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Authorize] | |
[HttpPost] | |
[ValidateAntiForgeryToken] | |
public async Task Logout() | |
{ | |
await HttpContext.SignOutAsync( | |
CookieAuthenticationDefaults.AuthenticationScheme); | |
return RedirectToAction(nameof(HomeController.Index), "Home"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment