fix(Extensions): update to add suffix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user