feat(accounts): interrupt MSAStep when client ID doesn't match

This commit is contained in:
Sefa Eyeoglu 2022-02-18 12:27:57 +01:00
parent 14717396eb
commit c5d9944993
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -49,6 +49,10 @@ void MSAStep::rehydrate() {
void MSAStep::perform() { void MSAStep::perform() {
switch(m_action) { switch(m_action) {
case Refresh: { 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(); m_oauth2->refresh();
return; return;
} }