This commit is contained in:
Chenx221 2023-08-23 13:45:44 +08:00
parent a3beff62a0
commit 21ca4e2ddf

View File

@ -156,8 +156,13 @@ namespace OTP
button1.Enabled = true;
runonce++;
}
//timer.Stop();
secretKey = Base32Encoding.ToBytes(selectedTitleInfo.SecretKey);
totp = new Totp(secretKey);
if (timer.Enabled)
{
GenerateAndDisplayTotp();
}
//string totpCode = totp.ComputeTotp();
//label1.Text = totpCode;
}
@ -207,6 +212,8 @@ namespace OTP
label1.Text = "TOTP Code";
button1.Enabled = false;
button2.Enabled = false;
circularProgressBar1.Text = "time";
circularProgressBar1.Value = 30;
}
else
{