-
+
@@ -134,7 +134,7 @@ else
StateHasChanged();
}
- ///
+ ///
/// This method will toggle the disabled status of an email claim.
///
private async Task ToggleEmailClaimStatus(UserEmailClaimWithCount entry)
diff --git a/apps/server/AliasVault.Admin/Main/Pages/Users/View/Index.razor b/apps/server/AliasVault.Admin/Main/Pages/Users/View/Index.razor
index 7f6e28db1..8f8d52f52 100644
--- a/apps/server/AliasVault.Admin/Main/Pages/Users/View/Index.razor
+++ b/apps/server/AliasVault.Admin/Main/Pages/Users/View/Index.razor
@@ -101,6 +101,18 @@ else
+
+
+
+
Recent authentication logs
+
+ Shows the last 5 authentication attempts for this user. Click "View all auth logs" to see complete history.
+
+
+
+
+
+
@@ -130,6 +142,7 @@ else
private int TwoFactorKeysCount { get; set; }
private List
RefreshTokenList { get; set; } = [];
private List VaultList { get; set; } = [];
+ private List AuthLogList { get; set; } = [];
///
protected override async Task OnInitializedAsync()
@@ -204,6 +217,13 @@ else
.OrderBy(x => x.UpdatedAt)
.ToListAsync();
+ // Load recent auth logs for this user (last 3 records).
+ AuthLogList = await dbContext.AuthLogs
+ .Where(x => x.Username == User.UserName)
+ .OrderByDescending(x => x.Timestamp)
+ .Take(5)
+ .ToListAsync();
+
IsLoading = false;
StateHasChanged();
}
diff --git a/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css b/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css
index 1db02e6dd..ef36aad8e 100644
--- a/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css
+++ b/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css
@@ -1541,6 +1541,11 @@ video {
line-height: 1rem;
}
+.text-4xl {
+ font-size: 2.25rem;
+ line-height: 2.5rem;
+}
+
.font-bold {
font-weight: 700;
}
@@ -1561,6 +1566,10 @@ video {
font-weight: 600;
}
+.italic {
+ font-style: italic;
+}
+
.leading-6 {
line-height: 1.5rem;
}