This commit is contained in:
Nicolas Werner 2021-01-01 04:14:34 +01:00
parent aab7447d02
commit a13502b881

View file

@ -316,11 +316,11 @@ LoginPage::checkHomeserverVersion()
emit versionOkCb(LoginMethod::Password); emit versionOkCb(LoginMethod::Password);
LoginMethod loginMethod = LoginMethod::Password; LoginMethod loginMethod = LoginMethod::Password;
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) {
loginMethod = LoginMethod::SSO; loginMethod = LoginMethod::SSO;
break; break;
} }
} }
emit versionOk(loginMethod); emit versionOk(loginMethod);
}); });