Open
Description
Describe the bug
When a user enters an email address into the new user registration form with a space before the username, it causes the account to be created but the user can't login because the username doesn't match the database.
To Reproduce
Steps to reproduce the behavior:
- As admin generate an "Invite User" link and visit it.
- Enter a username of the form: space[email protected] and the rest of the form the usual way
- User is registered but can't login
Expected behavior
The username should be stripped of leading (and probably trailing) spaces
Desktop (please complete the following information):
- OS: Linux server
-
- Browser Firefox, Edge both have replicated this error
- Version 0.14.1 installed in K8s via Helm