Reconfigure server url, when requested by login response

This commit is contained in:
Nicolas Werner 2019-06-27 15:55:04 +02:00
parent 52871cf93c
commit aa3d4c4f15

View file

@ -315,6 +315,12 @@ LoginPage::onLoginButtonClicked()
return; return;
} }
if (res.well_known) {
http::client()->set_server(res.well_known->homeserver.base_url);
nhlog::net()->info("Login requested to user server: " +
res.well_known->homeserver.base_url);
}
emit loginOk(res); emit loginOk(res);
}); });