summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-06-26 17:06:35 +0200
committerSimon Rettberg2020-06-26 17:06:35 +0200
commitc3ff769e1c1c3e0c376a81fe556563a05d09da96 (patch)
tree97b1078f58ca64beabeb7737832aea894369465c
parentDisable ALL outputs if setting resolution fails (diff)
downloadslxgreeter-c3ff769e1c1c3e0c376a81fe556563a05d09da96.tar.gz
slxgreeter-c3ff769e1c1c3e0c376a81fe556563a05d09da96.tar.xz
slxgreeter-c3ff769e1c1c3e0c376a81fe556563a05d09da96.zip
LoginRPC: Ignore requests with user or pass empty
-rw-r--r--src/loginform.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp
index 3c82fcd..885a567 100644
--- a/src/loginform.cpp
+++ b/src/loginform.cpp
@@ -45,6 +45,8 @@ LoginForm::LoginForm(QWidget *parent) :
if (port != 0) {
auto *car = new LoginRpc(port, this);
connect(car, &LoginRpc::loginRequest, [this](const QString &username, const QString &password, const QString &resolution) {
+ if (username.isEmpty() || password.isEmpty())
+ return;
ui->userInput->setText(username);
ui->passwordInput->setText(password);
this->startAuthentication();