Skip to content
Snippets Groups Projects
Unverified Commit 618c2e15 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #5124 from JediKev/issue/spaces-in-username

issue: Spaces In Username
parents 9ab42de7 7c8f5576
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ if ($_POST) {
if ($_POST && isset($_POST['luser'])) {
if (!$_POST['luser'])
$errors['err'] = __('Valid username or email address is required');
elseif (($user = UserAuthenticationBackend::process($_POST['luser'],
elseif (($user = UserAuthenticationBackend::process(trim($_POST['luser']),
$_POST['lpasswd'], $errors))) {
if ($user instanceof ClientCreateRequest) {
if ($cfg && $cfg->isClientRegistrationEnabled()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment