Get rid of some shadowing

pull/893/head
Nicolas Werner 3 years ago
parent c5c892b873
commit 909c11d2bb
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 10
      src/LoginPage.cpp

@ -171,16 +171,16 @@ LoginPage::checkHomeserverVersion()
if (err || flows.flows.empty())
emit versionOkCb(true, false);
bool ssoSupported_ = false;
bool passwordSupported_ = false;
bool ssoSupported = false;
bool passwordSupported = false;
for (const auto &flow : flows.flows) {
if (flow.type == mtx::user_interactive::auth_types::sso) {
ssoSupported_ = true;
ssoSupported = true;
} else if (flow.type == mtx::user_interactive::auth_types::password) {
passwordSupported_ = true;
passwordSupported = true;
}
}
emit versionOkCb(passwordSupported_, ssoSupported_);
emit versionOkCb(passwordSupported, ssoSupported);
});
});
}

Loading…
Cancel
Save