Fix disable certificate validation on login page
This commit is contained in:
parent
dea7680604
commit
31cc727594
@ -257,6 +257,8 @@ LoginPage::onMatrixIdEntered()
|
|||||||
serverInput_->setText(homeServer);
|
serverInput_->setText(homeServer);
|
||||||
|
|
||||||
http::client()->set_server(user.hostname());
|
http::client()->set_server(user.hostname());
|
||||||
|
http::client()->verify_certificates(
|
||||||
|
!UserSettings::instance()->disableCertificateValidation());
|
||||||
|
|
||||||
http::client()->well_known([this](const mtx::responses::WellKnown &res,
|
http::client()->well_known([this](const mtx::responses::WellKnown &res,
|
||||||
mtx::http::RequestErr err) {
|
mtx::http::RequestErr err) {
|
||||||
@ -342,6 +344,8 @@ void
|
|||||||
LoginPage::onServerAddressEntered()
|
LoginPage::onServerAddressEntered()
|
||||||
{
|
{
|
||||||
error_label_->setText("");
|
error_label_->setText("");
|
||||||
|
http::client()->verify_certificates(
|
||||||
|
!UserSettings::instance()->disableCertificateValidation());
|
||||||
http::client()->set_server(serverInput_->text().toStdString());
|
http::client()->set_server(serverInput_->text().toStdString());
|
||||||
checkHomeserverVersion();
|
checkHomeserverVersion();
|
||||||
|
|
||||||
@ -385,9 +389,6 @@ void
|
|||||||
LoginPage::onLoginButtonClicked(LoginMethod loginMethod)
|
LoginPage::onLoginButtonClicked(LoginMethod loginMethod)
|
||||||
{
|
{
|
||||||
error_label_->setText("");
|
error_label_->setText("");
|
||||||
http::client()->verify_certificates(
|
|
||||||
!UserSettings::instance()->disableCertificateValidation());
|
|
||||||
|
|
||||||
User user;
|
User user;
|
||||||
|
|
||||||
if (!matrixid_input_->isValid()) {
|
if (!matrixid_input_->isValid()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user