Finish translation of landing page

This commit is contained in:
jvyden 2022-07-26 16:44:19 -04:00
parent 51228b2ca1
commit 1e9f672d6c
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
7 changed files with 34 additions and 24 deletions

View file

@ -15,7 +15,7 @@ public class LandingPage : BaseLayout
public LandingPage(Database database) : base(database)
{}
public int AuthenticationAttemptsCount;
public int PendingAuthAttempts;
public List<User> PlayersOnline = new();
public int PlayersOnlineCount;
@ -32,7 +32,7 @@ public class LandingPage : BaseLayout
this.PlayersOnlineCount = await StatisticsHelper.RecentMatches();
if (user != null)
this.AuthenticationAttemptsCount = await this.Database.AuthenticationAttempts.Include
this.PendingAuthAttempts = await this.Database.AuthenticationAttempts.Include
(a => a.GameToken)
.CountAsync(a => a.GameToken.UserId == user.UserId);