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

46
AyaNovaQBI/tfa.cs Normal file
View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AyaNovaQBI
{
public partial class tfa : Form
{
public string TFACode { get; set; }
public tfa()
{
InitializeComponent();
}
private void auth_Load(object sender, EventArgs e)
{
}
private async void btnVerifyCode_click(object sender, EventArgs e)
{
var res = await util.AuthenticateTFAAsync(ed);
if (!res)
{
MessageBox.Show("Login failed");
btnLogin.Enabled = btnTest.Enabled = true;
this.DialogResult = DialogResult.Cancel;
return;
}
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}