Add proper timestamp to authentication page

This commit is contained in:
jvyden 2021-11-21 19:41:42 -05:00
commit df49ae10fd
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -18,8 +18,9 @@ else
@foreach (AuthenticationAttempt authAttempt in Model.AuthenticationAttempts)
{
DateTimeOffset timestamp = DateTimeOffset.FromUnixTimeSeconds(authAttempt.Timestamp);
<div class="ui red segment">
<p>A <b>@authAttempt.Platform</b> authentication request was logged at <b>@authAttempt.Timestamp</b> from the IP address <b>@authAttempt.IPAddress</b>.</p>
<p>A <b>@authAttempt.Platform</b> authentication request was logged at <b>@timestamp.ToString("MM/dd/yyyy @ h:mm tt") UTC</b> from the IP address <b>@authAttempt.IPAddress</b>.</p>
<div>
<a href="/authentication/approve/@authAttempt.GameTokenId">
<button class="ui tiny green button">Approve</button>