From 02f520c717452a89ad7990b7f6b4ab56f0bb54c2 Mon Sep 17 00:00:00 2001 From: Slendy Date: Sun, 14 May 2023 14:50:43 -0500 Subject: [PATCH] Fix account unlinking --- .../Controllers/ExternalAuth/AuthenticationController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProjectLighthouse.Servers.Website/Controllers/ExternalAuth/AuthenticationController.cs b/ProjectLighthouse.Servers.Website/Controllers/ExternalAuth/AuthenticationController.cs index 50b0a1a8..52d16cb1 100644 --- a/ProjectLighthouse.Servers.Website/Controllers/ExternalAuth/AuthenticationController.cs +++ b/ProjectLighthouse.Servers.Website/Controllers/ExternalAuth/AuthenticationController.cs @@ -39,6 +39,7 @@ public class AuthenticationController : ControllerBase } await this.database.GameTokens.RemoveWhere(t => t.UserId == user.UserId && invalidTokens.Contains(t.Platform)); + await this.database.SaveChangesAsync(); return this.Redirect("~/authentication"); }