From c0cbc0be7b96015cb74a26b44e8a06dd8dbdfbd6 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Mon, 1 Dec 2025 23:08:38 +0100 Subject: [PATCH] Only include successful attempts in statistics (#1420) --- apps/server/AliasVault.Admin/Services/StatisticsService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/server/AliasVault.Admin/Services/StatisticsService.cs b/apps/server/AliasVault.Admin/Services/StatisticsService.cs index 08c1a7897..3c1227893 100644 --- a/apps/server/AliasVault.Admin/Services/StatisticsService.cs +++ b/apps/server/AliasVault.Admin/Services/StatisticsService.cs @@ -624,6 +624,7 @@ public class StatisticsService .Where(al => al.Timestamp >= cutoffDate && al.IpAddress != null && al.IpAddress != "xxx.xxx.xxx.xxx" && + al.IsSuccess && al.EventType == AuthEventType.AccountDeletion) .GroupBy(al => al.IpAddress) .Select(g => new @@ -656,6 +657,7 @@ public class StatisticsService var topUsernames = await context.AuthLogs .Where(al => al.Timestamp >= cutoffDate && al.Username != null && + al.IsSuccess && al.EventType == AuthEventType.AccountDeletion) .GroupBy(al => al.Username) .Select(g => new