diff options
author | Simon Rettberg | 2018-04-10 10:34:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-10 10:34:30 +0200 |
commit | e815211f6e8711bd6b6749888d39ee937ba612b2 (patch) | |
tree | 7039f781f44a483d4dd0689daa50e3c8f9f6f5a8 | |
parent | Support regex mangling of username before passing to lightdm (diff) | |
download | slxgreeter-e815211f6e8711bd6b6749888d39ee937ba612b2.tar.gz slxgreeter-e815211f6e8711bd6b6749888d39ee937ba612b2.tar.xz slxgreeter-e815211f6e8711bd6b6749888d39ee937ba612b2.zip |
Trim username
-rw-r--r-- | src/loginform.cpp | 2 |
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; |