This commit is contained in:
2022-06-20 22:16:12 +00:00
parent 4fb17a3778
commit 0e7d1de1ed
6 changed files with 4227 additions and 0 deletions

View File

@@ -100,7 +100,20 @@ namespace AyaNovaQBI
if (response.IsSuccessStatusCode)
{
var a= new ApiResponse() { HttpResponse = response, ObjectResponse = Parse(await response.Content.ReadAsStringAsync()) };
bool tfa = a.ObjectResponse["data"]["tfa"].Value<bool>();
if (tfa == true)
{
//get 2fa code and send it in
tfa t = new tfa();
if(t.ShowDialog()==System.Windows.Forms.DialogResult.Cancel) return false;
}
JWT = a.ObjectResponse["data"]["token"].Value<string>();
return true;
}