From ec7bd8c1c84029000b548b0f847142699d93a096 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 21 Mar 2024 15:02:50 -0400 Subject: [PATCH] ignore Antiforgerytoken in logout as it can sometimes prevent a user from logging out unless they refresh their browser, due to the Antiforgerytoken being expired. --- Oqtane.Server/Pages/Logout.cshtml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Oqtane.Server/Pages/Logout.cshtml.cs b/Oqtane.Server/Pages/Logout.cshtml.cs index eaac88f9..40b58fb5 100644 --- a/Oqtane.Server/Pages/Logout.cshtml.cs +++ b/Oqtane.Server/Pages/Logout.cshtml.cs @@ -11,6 +11,7 @@ using Oqtane.Shared; namespace Oqtane.Pages { [Authorize] + [IgnoreAntiforgeryToken] public class LogoutModel : PageModel { private readonly IUserManager _userManager;