summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-10 10:34:30 +0200
committerSimon Rettberg2018-04-10 10:34:30 +0200
commite815211f6e8711bd6b6749888d39ee937ba612b2 (patch)
tree7039f781f44a483d4dd0689daa50e3c8f9f6f5a8
parentSupport regex mangling of username before passing to lightdm (diff)
downloadslxgreeter-e815211f6e8711bd6b6749888d39ee937ba612b2.tar.gz
slxgreeter-e815211f6e8711bd6b6749888d39ee937ba612b2.tar.xz
slxgreeter-e815211f6e8711bd6b6749888d39ee937ba612b2.zip
Trim username
-rw-r--r--src/loginform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp
index a43e9a8..d5e141e 100644
--- a/src/loginform.cpp
+++ b/src/loginform.cpp
@@ -83,7 +83,7 @@ void LoginForm::initialize()
void LoginForm::startAuthentication()
{
- QString username(ui->userInput->text());
+ QString username(ui->userInput->text().trimmed());
NameReplace::replace(username);
std::cerr << "Logging in as " << username.toStdString() << std::endl;