Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Only include successful attempts in statistics (#1420)
Leendert de Borstc0cbc0be7b96
diff --git a/apps/server/AliasVault.Admin/Services/StatisticsService.cs b/apps/server/AliasVault.Admin/Services/StatisticsService.csindex 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 StatisticsServicevar 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