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