summary refs log tree commit diff
path: root/src/LoginPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/LoginPage.cpp')
-rw-r--r--src/LoginPage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp

index 8e2aef26..c08e586f 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp
@@ -19,6 +19,7 @@ #include "LoginPage.h" #include "MatrixClient.h" #include "SSOHandler.h" +#include "UserSettingsPage.h" #include "ui/FlatButton.h" #include "ui/LoadingIndicator.h" #include "ui/OverlayModal.h" @@ -256,6 +257,7 @@ LoginPage::onMatrixIdEntered() serverInput_->setText(homeServer); http::client()->set_server(user.hostname()); + http::client()->well_known([this](const mtx::responses::WellKnown &res, mtx::http::RequestErr err) { if (err) { @@ -383,6 +385,8 @@ void LoginPage::onLoginButtonClicked(LoginMethod loginMethod) { error_label_->setText(""); + http::client()->verify_certificates( + !UserSettings::instance()->disableCertificateValidation()); User user;