Fix cicli redirect inutili
This commit is contained in:
@@ -739,23 +739,20 @@ namespace MConnectSDK
|
||||
authData.outMessage += sb.ToString();
|
||||
|
||||
// verifico SE sia stato x autorizzato...
|
||||
if (reqStatus.isAuth)
|
||||
if (reqStatus.isAuth || authData.hasAuth)
|
||||
{
|
||||
sb.AppendLine("");
|
||||
sb.AppendLine("--------------------------------------------------");
|
||||
sb.AppendLine("SUCCESS 200: AUTH RECEIVED!");
|
||||
sb.AppendLine("--------------------------------------------------");
|
||||
authData.outMessage += sb.ToString();
|
||||
}
|
||||
|
||||
// verifico SE sia stato registrato...
|
||||
if (reqStatus.isHmiEnrolled)
|
||||
if (reqStatus.isHmiEnrolled || authData.isEnrolled)
|
||||
{
|
||||
sb.AppendLine("");
|
||||
sb.AppendLine("--------------------------------------------------");
|
||||
sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | AUTH + ENROLL DONE", DateTime.Now));
|
||||
sb.AppendLine("--------------------------------------------------");
|
||||
sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | ENROLL DONE", DateTime.Now));
|
||||
authData.outMessage += sb.ToString();
|
||||
processRequest = false;
|
||||
}
|
||||
|
||||
// verifico se richiesta cancellazione... CHIUDO!
|
||||
|
||||
@@ -161,11 +161,10 @@ namespace TestClient
|
||||
// graphics will be disposed at this line
|
||||
pictBox.Image = bitmap;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//sb.AppendLine("--------------------------------------------------");
|
||||
sb.AppendLine("AUTH DONE!");
|
||||
if (reqStatus.isHmiEnrolled)
|
||||
if (authData.isEnrolled || reqStatus.isHmiEnrolled)
|
||||
{
|
||||
sb.AppendLine("");
|
||||
sb.AppendLine("------");
|
||||
sb.AppendLine("ENROLLED!");
|
||||
}
|
||||
lblRetData.Text = sb.ToString();
|
||||
@@ -176,7 +175,6 @@ namespace TestClient
|
||||
if (authData.userCode != "")
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//sb.AppendLine("--------------------------------------------------");
|
||||
sb.AppendLine("device_code:");
|
||||
sb.AppendLine(authData.deviceCode.ToString());
|
||||
sb.AppendLine("");
|
||||
|
||||
Reference in New Issue
Block a user