diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-18 12:27:57 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-18 12:32:24 +0100 |
commit | c5d9944993832f16e76a9a63a402665c5321267b (patch) | |
tree | d293dba8dc7095e0614f9169be86161756b6034c | |
parent | 14717396eb9be5f14b23a1af50e1379e66cfaf3c (diff) | |
download | PrismLauncher-c5d9944993832f16e76a9a63a402665c5321267b.tar.gz PrismLauncher-c5d9944993832f16e76a9a63a402665c5321267b.tar.bz2 PrismLauncher-c5d9944993832f16e76a9a63a402665c5321267b.zip |
feat(accounts): interrupt MSAStep when client ID doesn't match
-rw-r--r-- | launcher/minecraft/auth/steps/MSAStep.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/minecraft/auth/steps/MSAStep.cpp b/launcher/minecraft/auth/steps/MSAStep.cpp index 7d28c2c8..207d9373 100644 --- a/launcher/minecraft/auth/steps/MSAStep.cpp +++ b/launcher/minecraft/auth/steps/MSAStep.cpp @@ -49,6 +49,10 @@ void MSAStep::rehydrate() { void MSAStep::perform() { switch(m_action) { case Refresh: { + if (m_data->msaClientID != m_clientId) { + emit hideVerificationUriAndCode(); + emit finished(AccountTaskState::STATE_DISABLED, tr("Microsoft user authentication failed - client identification has changed.")); + } m_oauth2->refresh(); return; } |