btcpayserver/BTCPayServer/Views/UIAccount/Lockout.cshtml
d11n b577c0adb7
Minor UI updates (#4530)
* Minor UI updates

* Lockout page fixes

Fix duplicate headline and model null-check
2023-01-19 18:08:34 +09:00

20 lines
629 B
Plaintext

@using BTCPayServer.Abstractions.Extensions
@model DateTimeOffset?
@{
ViewData["Title"] = "Account disabled";
Layout = "_LayoutSignedOut";
}
@if (Model is null)
{
<p class="mb-0">This account has been locked out because of multiple invalid login attempts. Please try again later.</p>
}
else if (DateTimeOffset.MaxValue - Model.Value < TimeSpan.FromSeconds(1))
{
<p class="mb-0">Your account has been disabled. Please contact server administrator.</p>
}
else
{
<p class="mb-0">This account has been locked out. Please try again @Model.Value.ToBrowserDate(ViewsRazor.DateDisplayFormat.Relative).</p>
}