From 5bb5018cc0033bae82bfb9350dbdaacf8a1709ae Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 15 Aug 2025 03:06:33 +0800 Subject: [PATCH] :bug: Fix logout device --- DysonNetwork.Pass/Account/AccountService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DysonNetwork.Pass/Account/AccountService.cs b/DysonNetwork.Pass/Account/AccountService.cs index 9e2a8de..3435f8b 100644 --- a/DysonNetwork.Pass/Account/AccountService.cs +++ b/DysonNetwork.Pass/Account/AccountService.cs @@ -516,6 +516,9 @@ public class AccountService( new UnsubscribePushNotificationsRequest() { DeviceId = device.DeviceId } ); + db.AuthClients.Remove(device); + await db.SaveChangesAsync(); + var sessions = await db.AuthSessions .Include(s => s.Challenge) .Where(s => s.Challenge.ClientId == device.Id)