@using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver; @using Newtonsoft.Json @using EnvelopeGenerator.Web.Extensions; @model Auth; @{ //TODO: Create view model var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string; var cImg = _cImgOpt.Value; string codeType = ViewData["CodeType"] is string _codeType ? _codeType : "accessCode"; string codeKeyName = (char.ToUpper(codeType[0]) + codeType.Substring(1)).Replace("Code", ""); ViewData["Title"] = _localizer.LockedTitle(codeKeyName); bool viaSms = codeType == "smsCode"; bool viaAuthenticator = codeType == "authenticatorCode"; bool viaTFA = viaSms || viaAuthenticator; DateTime? smsExpiration = ViewData["SmsExpiration"] is DateTime _smsExpiration ? _smsExpiration : null; bool tfaEnabled = ViewData["TFAEnabled"] is bool _tfaEnabled && _tfaEnabled; bool hasPhoneNumber = ViewData["HasPhoneNumber"] is bool _hasPhoneNumber && _hasPhoneNumber; var envelopeKey = ViewData["EnvelopeKey"] as string; DateTime? tfaRegDeadline = ViewData["TfaRegDeadline"] is DateTime _deadline ? _deadline : null; var senderEmail = ViewData["SenderEmail"] as string ?? string.Empty; var envelopeTitle = ViewData["EnvelopeTitle"] as string ?? string.Empty; }
Klicken Sie auf den Link um Ihre Authenticator-App einzurichten.
@_localizer.LockedBody(codeKeyName)
@Html.Raw(_localizer.LockedFooterBody(codeKeyName).Format(senderEmail, "Envelope - " + envelopeTitle, string.Empty))