summaryrefslogtreecommitdiff
path: root/lib/kolab_api_controller.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-04-02 07:10:08 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2015-04-02 07:10:08 (GMT)
commitafecd5d190cde3190324d7a6ac21196dc33a0955 (patch)
tree1cf4ef69073bcf64f83f69dcdfea973074c3ad98 /lib/kolab_api_controller.php
parent81684b443784c7f2adbe964c1eedf599aadcabe9 (diff)
downloadkolab-wap-master.tar.gz
Trim username on login (#4957)HEADmaster
Diffstat (limited to 'lib/kolab_api_controller.php')
-rw-r--r--lib/kolab_api_controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kolab_api_controller.php b/lib/kolab_api_controller.php
index f3f20bb..daeb30c 100644
--- a/lib/kolab_api_controller.php
+++ b/lib/kolab_api_controller.php
@@ -303,8 +303,8 @@ class kolab_api_controller
$_SESSION['user'] = new User();
$attributes = null;
$password = $postdata['password'];
- $username = $postdata['username'];
- $domain = $postdata['domain'];
+ $username = trim($postdata['username']);
+ $domain = trim($postdata['domain']);
// find user domain
if (empty($domain)) {