mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Fix shadowing in LoginPage.cpp
This commit is contained in:
parent
03d817d277
commit
0c0c69074d
1 changed files with 3 additions and 3 deletions
|
@ -315,14 +315,14 @@ LoginPage::checkHomeserverVersion()
|
|||
if (err || flows.flows.empty())
|
||||
emit versionOkCb(LoginMethod::Password);
|
||||
|
||||
LoginMethod loginMethod = LoginMethod::Password;
|
||||
LoginMethod loginMethod_ = LoginMethod::Password;
|
||||
for (const auto &flow : flows.flows) {
|
||||
if (flow.type == mtx::user_interactive::auth_types::sso) {
|
||||
loginMethod = LoginMethod::SSO;
|
||||
loginMethod_ = LoginMethod::SSO;
|
||||
break;
|
||||
}
|
||||
}
|
||||
emit versionOk(loginMethod);
|
||||
emit versionOk(loginMethod_);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue