diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 8e70ba9d5..904cdabba 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -639,7 +639,7 @@ class authentication { //if the username if (!empty($_REQUEST["username"])) { - $_SESSION['username'] = $_REQUEST["username"]; + $_SESSION['username'] = trim($_REQUEST["username"]); } //set a default value for unqiue