fix(Extensions): update to add suffix

This commit is contained in:
2025-09-08 16:53:44 +02:00
parent 40697435ff
commit 876c5def56
2 changed files with 11 additions and 12 deletions

View File

@@ -6,9 +6,9 @@
//TODO: Create view model
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var cImg = _cImgOpt.Value;
ViewData["Title"] = _localizer.DocProtected();
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;