Trim username on login
-
Hi Devs,
I noted that if the username (in this specific case, email) contains a space at the end, login will fail. To validate, I added the following script in the login screen via the debugger console. It seems to resolve the issue.
$('input[type="text"]').change(function () { this.value = $.trim(this.value); });
Please consider adding trim on the server side prior to password match.
JJ.
Copyright © 2024 NodeBB | Contributors