This commit is contained in:
2019-10-01 22:35:24 +00:00
parent a1a1c67657
commit 94a8cc1946
2 changed files with 4 additions and 4 deletions

View File

@@ -496,7 +496,7 @@ namespace AyaNova.PlugIn.QBOI
#region Pre flight check #region Pre flight check
private bool DoPFC() private bool DoPFC()
{ {
if (bPFCDone) return true; if (bPFCDone) return true;

View File

@@ -353,9 +353,9 @@ namespace AyaNova.PlugIn.QBOI
{ {
using (System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider()) using (System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider())
{ {
var buffer = new byte[sizeof(UInt64)]; var buffer = new byte[24];
rng.GetBytes(buffer); rng.GetBytes(buffer);
return Convert.ToBase64String(buffer); return Convert.ToBase64String(buffer).TrimEnd('=');
} }
} }
@@ -373,7 +373,7 @@ namespace AyaNova.PlugIn.QBOI
System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + QBOI2_SESSION_TOKEN); System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + System.Uri.EscapeDataString(QBOI2_SESSION_TOKEN));
//here we need to loop checking for the data we need on qboauth site or quit if user selects quit so //here we need to loop checking for the data we need on qboauth site or quit if user selects quit so
//a special dialog is required here or something //a special dialog is required here or something