mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Get rid of some shadowing
This commit is contained in:
parent
c5c892b873
commit
909c11d2bb
1 changed files with 5 additions and 5 deletions
|
@ -171,16 +171,16 @@ LoginPage::checkHomeserverVersion()
|
||||||
if (err || flows.flows.empty())
|
if (err || flows.flows.empty())
|
||||||
emit versionOkCb(true, false);
|
emit versionOkCb(true, false);
|
||||||
|
|
||||||
bool ssoSupported_ = false;
|
bool ssoSupported = false;
|
||||||
bool passwordSupported_ = false;
|
bool passwordSupported = false;
|
||||||
for (const auto &flow : flows.flows) {
|
for (const auto &flow : flows.flows) {
|
||||||
if (flow.type == mtx::user_interactive::auth_types::sso) {
|
if (flow.type == mtx::user_interactive::auth_types::sso) {
|
||||||
ssoSupported_ = true;
|
ssoSupported = true;
|
||||||
} else if (flow.type == mtx::user_interactive::auth_types::password) {
|
} else if (flow.type == mtx::user_interactive::auth_types::password) {
|
||||||
passwordSupported_ = true;
|
passwordSupported = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emit versionOkCb(passwordSupported_, ssoSupported_);
|
emit versionOkCb(passwordSupported, ssoSupported);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue