This commit is contained in:
2021-03-12 15:59:47 +00:00
parent fee905a1ed
commit 00497abf6a
6 changed files with 23 additions and 13 deletions

View File

@@ -198,9 +198,15 @@ namespace AyaNova.Api.Controllers
//if 2fa enabled then need to validate it before sending token, so we're halfway there and need to send a 2fa prompt
if (u.TwoFactorEnabled)
{
List<string> TranslationKeysToFetch = new List<string> { "AuthTwoFactor", "AuthEnterPin", "AuthVerifyCode", "Cancel" };
var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, u.UserOptions.TranslationId);
return Ok(ApiOkResponse.Response(new
{
AuthTwoFactor = LT["AuthTwoFactor"],
AuthEnterPin = LT["AuthEnterPin"],
AuthVerifyCode = LT["AuthVerifyCode"],
Cancel = LT["Cancel"],
tfa = true
}));
}