Fix cicli redirect inutili

This commit is contained in:
Samuele E. Locatelli
2019-03-06 13:11:16 +01:00
parent dc1c90558e
commit 64fe527c42
2 changed files with 6 additions and 11 deletions
+4 -7
View File
@@ -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!
+2 -4
View File
@@ -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("");