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.

This commit is contained in:
sbwalker 2024-03-21 15:02:50 -04:00
parent 448e3a4639
commit ec7bd8c1c8

View File

@ -11,6 +11,7 @@ using Oqtane.Shared;
namespace Oqtane.Pages
{
[Authorize]
[IgnoreAntiforgeryToken]
public class LogoutModel : PageModel
{
private readonly IUserManager _userManager;