@page "/authentication" @using LBPUnion.ProjectLighthouse.PlayerData @model LBPUnion.ProjectLighthouse.Servers.Website.Pages.ExternalAuth.AuthenticationPage @{ Layout = "Layouts/BaseLayout"; Model.Title = "Authentication"; string timeZone = Model.GetTimeZone(); TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(timeZone); } @if (Model.AuthenticationAttempts.Count == 0) {

You have no pending authentication attempts.

} else {

You have @Model.AuthenticationAttempts.Count authentication attempts pending.

@if (Model.IpAddress != null) {

This device's IP address is @(Model.IpAddress.ToString()). If this matches with an authentication attempt below, then it's safe to assume the authentication attempt came from the same network as this device.

} } @if (Model.User!.ApprovedIPAddress != null) { } @if (Model.AuthenticationAttempts.Count > 1) { } @foreach (AuthenticationAttempt authAttempt in Model.AuthenticationAttempts) { DateTimeOffset timestamp = TimeZoneInfo.ConvertTime(DateTimeOffset.FromUnixTimeSeconds(authAttempt.Timestamp), timeZoneInfo);

A @authAttempt.Platform authentication request was logged at @timestamp.ToString("M/d/yyyy @ h:mm tt") from the IP address @authAttempt.IPAddress.

}