mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-01 09:53:05 -05:00
Update SecurityController.cs (#1489)
This commit is contained in:
committed by
Leendert de Borst
parent
4c02656c84
commit
ed320750c1
@@ -102,6 +102,7 @@ public class SecurityController(IAliasServerDbContextFactory dbContextFactory, U
|
||||
|
||||
var authLogs = await context.AuthLogs
|
||||
.Where(x => x.Username == user.UserName)
|
||||
.Where(x => x.Timestamp >= user.CreatedAt)
|
||||
.Where(x => x.EventType != AuthEventType.TokenRefresh)
|
||||
.OrderByDescending(x => x.Timestamp)
|
||||
.Take(50)
|
||||
|
||||
Reference in New Issue
Block a user