Adds hooks for QRCode and RejectedToken

pull/503/head
Iluha 3 years ago
parent fae706be90
commit c929eb3a1c

@ -546,12 +546,16 @@ namespace DepotDownloader
{ {
Console.WriteLine(); Console.WriteLine();
Console.WriteLine("The QR code has changed:"); Console.WriteLine("The QR code has changed:");
// Display the URL instead of the QR code
Console.WriteLine("[QRCode]|[URL]|{0}", session.ChallengeURL);
DisplayQrCode(session.ChallengeURL); //DisplayQrCode(session.ChallengeURL);
}; };
// Draw initial QR code immediately // Draw initial QR code immediately
DisplayQrCode(session.ChallengeURL); // Display the URL instead of the QR code
Console.WriteLine("[QRCode]|[URL]|{0}", session.ChallengeURL);
//DisplayQrCode(session.ChallengeURL);
} }
catch (TaskCanceledException) catch (TaskCanceledException)
{ {
@ -559,7 +563,7 @@ namespace DepotDownloader
} }
catch (Exception ex) catch (Exception ex)
{ {
Console.Error.WriteLine("Failed to authenticate with Steam: " + ex.Message); Console.Error.WriteLine("[Error]|[SteamLib]|Failed to authenticate with Steam: " + ex.Message);
Abort(false); Abort(false);
return; return;
} }
@ -585,7 +589,7 @@ namespace DepotDownloader
} }
catch (Exception ex) catch (Exception ex)
{ {
Console.Error.WriteLine("Failed to authenticate with Steam: " + ex.Message); Console.Error.WriteLine("[Error]|[SteamLib]|Failed to authenticate with Steam: " + ex.Message);
Abort(false); Abort(false);
return; return;
} }
@ -665,7 +669,7 @@ namespace DepotDownloader
AccountSettingsStore.Save(); AccountSettingsStore.Save();
// TODO: Handle gracefully by falling back to password prompt? // TODO: Handle gracefully by falling back to password prompt?
Console.WriteLine("Access token was rejected."); Console.WriteLine("[Error]|[TokenRejected]|Access token was rejected.");
Abort(false); Abort(false);
return; return;
} }

Loading…
Cancel
Save