This commit is contained in:
2021-03-11 18:23:20 +00:00
parent 0ae69f6591
commit f777e70e33

View File

@@ -246,7 +246,8 @@ namespace AyaNova.Api.Controllers
name = u.Name,
usertype = u.UserType,
roles = ((int)u.Roles).ToString(),
dlt = DownloadToken
dlt = DownloadToken,
tfa = u.TwoFactorEnabled
}));
}
}
@@ -462,7 +463,7 @@ namespace AyaNova.Api.Controllers
return Ok(ApiOkResponse.Response(new
{
s = u.HotpSecret,
qrCode = qrCodeImageAsBase64
qr = qrCodeImageAsBase64
}));
}