Skip to content
Snippets Groups Projects
Verified Commit 909c11d2 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Get rid of some shadowing

parent c5c892b8
No related branches found
No related tags found
No related merge requests found
Pipeline #2542 failed
......@@ -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);
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment