feat(Reg.cshtml): Zeitüberschreitung hinzugefügt.
- TFARegController.Reg aktualisiert, um die Seite _Expired view zu senden, wenn receiver.TfaRegDeadline abläuft. - TFARegParams Klasse für TimeLimit Configuration erstellt und mit appsettings konfiguriert.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
@{
|
||||
@using System.Globalization
|
||||
@{
|
||||
ViewData["Title"] = "2FA Registrierung";
|
||||
var totpQR64 = ViewData["TotpQR64"] as string;
|
||||
var regDeadline = ViewData["RegDeadline"] is DateTime _dateTime ? _dateTime : throw new InvalidOperationException("RegDeadline is not added to view in Reg.cshtml view.");
|
||||
}
|
||||
<div class="page container p-5">
|
||||
<header class="text-center">
|
||||
@@ -13,6 +15,9 @@
|
||||
<h2 class="mb-0">2-Factor Authentication (2FA)</h2>
|
||||
<h2>Registrierung</h2>
|
||||
</header>
|
||||
<section class="text-center">
|
||||
<p class="p-0 m-0"> @string.Format("Diese Seite ist bis {0} sichtbar.", regDeadline.ToString("d. MMM, HH:mm", new CultureInfo("de-DE")))</p>
|
||||
</section>
|
||||
<section class="text-start mt-4">
|
||||
<div class="accordion" id="tfaRegStep">
|
||||
<div class="accordion-item">
|
||||
|
||||
Reference in New Issue
Block a user