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);
LoginMethod loginMethod = LoginMethod::Password;
for(const auto &flow : flows.flows) {
if (flow.type == mtx::user_interactive::auth_types::sso) {
loginMethod = LoginMethod::SSO;
break;
}
for (const auto &flow : flows.flows) {
if (flow.type == mtx::user_interactive::auth_types::sso) {
loginMethod = LoginMethod::SSO;
break;
}
}
emit versionOk(loginMethod);
});