diff options
author | flow <flowlnlnln@gmail.com> | 2022-12-28 09:54:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 09:54:23 -0800 |
commit | 67ac3da8a0eac959343fe86ca143b97f0f76543c (patch) | |
tree | fe340243603b2a5a743567e817aeab01ab44e8f5 /launcher/minecraft/auth/steps/MSAStep.cpp | |
parent | c1e5179b5fb1e69c61bdbd3c6258e871882dfec5 (diff) | |
parent | 7a651bdc5310dffd19148e5f2046126324e2f53f (diff) | |
download | PrismLauncher-67ac3da8a0eac959343fe86ca143b97f0f76543c.tar.gz PrismLauncher-67ac3da8a0eac959343fe86ca143b97f0f76543c.tar.bz2 PrismLauncher-67ac3da8a0eac959343fe86ca143b97f0f76543c.zip |
Merge pull request #684 from Scrumplex/logging-categories
Prevents private credentials from leaking in the logs of general users
Diffstat (limited to 'launcher/minecraft/auth/steps/MSAStep.cpp')
-rw-r--r-- | launcher/minecraft/auth/steps/MSAStep.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/launcher/minecraft/auth/steps/MSAStep.cpp b/launcher/minecraft/auth/steps/MSAStep.cpp index 16afcb42..6fc8d468 100644 --- a/launcher/minecraft/auth/steps/MSAStep.cpp +++ b/launcher/minecraft/auth/steps/MSAStep.cpp @@ -42,6 +42,7 @@ #include "minecraft/auth/Parsers.h" #include "Application.h" +#include "Logging.h" using OAuth2 = Katabasis::DeviceFlow; using Activity = Katabasis::Activity; @@ -117,14 +118,12 @@ void MSAStep::onOAuthActivityChanged(Katabasis::Activity activity) { // Succeeded or did not invalidate tokens emit hideVerificationUriAndCode(); QVariantMap extraTokens = m_oauth2->extraTokens(); -#ifndef NDEBUG if (!extraTokens.isEmpty()) { - qDebug() << "Extra tokens in response:"; + qCDebug(authCredentials()) << "Extra tokens in response:"; foreach (QString key, extraTokens.keys()) { - qDebug() << "\t" << key << ":" << extraTokens.value(key); + qCDebug(authCredentials()) << "\t" << key << ":" << extraTokens.value(key); } } -#endif emit finished(AccountTaskState::STATE_WORKING, tr("Got ")); return; } |