From aa3d4c4f15226dc90420de65ef489d6d5d404e82 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 27 Jun 2019 15:55:04 +0200 Subject: [PATCH] Reconfigure server url, when requested by login response --- src/LoginPage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp index 00893659..3bcdafd7 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp @@ -315,6 +315,12 @@ LoginPage::onLoginButtonClicked() 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); });