mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-04-03 22:44:49 -04:00
Only include successful attempts in statistics (#1420)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user