summary refs log tree commit diff
path: root/src/LoginPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-10 01:00:20 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-10 01:00:20 +0200
commit6befadeec88c8be6db304136a079e1b56b451cc6 (patch)
treed9f39042a28272818e7b5e33547f3931d42f2dbf /src/LoginPage.cpp
parentFix not being able to log http status on login (diff)
downloadnheko-6befadeec88c8be6db304136a079e1b56b451cc6.tar.xz
Remove shadowing loginMethod
Diffstat (limited to 'src/LoginPage.cpp')
-rw-r--r--src/LoginPage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp

index 856c0ad3..bb329699 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp
@@ -311,9 +311,9 @@ LoginPage::versionError(const QString &error) } void -LoginPage::versionOk(LoginMethod loginMethod) +LoginPage::versionOk(LoginMethod loginMethod_) { - this->loginMethod = loginMethod; + this->loginMethod = loginMethod_; serverLayout_->removeWidget(spinner_); matrixidLayout_->removeWidget(spinner_); @@ -372,8 +372,8 @@ LoginPage::onLoginButtonClicked() auto sso = new SSOHandler(); connect(sso, &SSOHandler::ssoSuccess, this, [this, sso](std::string token) { mtx::requests::Login req{}; - req.token = token; - req.type = mtx::user_interactive::auth_types::token; + req.token = token; + req.type = mtx::user_interactive::auth_types::token; req.device_id = deviceName_->text().trimmed().isEmpty() ? initialDeviceName() : deviceName_->text().toStdString();