Fix key upload when doing SSO login

gst-update
Nicolas Werner 3 years ago
parent 71a7dace81
commit e98145daec
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/LoginPage.cpp

@ -291,7 +291,7 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod,
mtx::requests::Login req{}; mtx::requests::Login req{};
req.token = token; req.token = token;
req.type = mtx::user_interactive::auth_types::token; req.type = mtx::user_interactive::auth_types::token;
req.device_id = req.initial_device_display_name =
deviceName.trimmed().isEmpty() ? initialDeviceName_() : deviceName.toStdString(); deviceName.trimmed().isEmpty() ? initialDeviceName_() : deviceName.toStdString();
http::client()->login( http::client()->login(
req, [this](const mtx::responses::Login &res, mtx::http::RequestErr err) { req, [this](const mtx::responses::Login &res, mtx::http::RequestErr err) {

Loading…
Cancel
Save