This commit is contained in:
@@ -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
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user