feat(accounts): interrupt MSAStep when client ID doesn't match
This commit is contained in:
parent
14717396eb
commit
c5d9944993
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user