Skip to content

Space before username causes registration failure #12970

Open
@dschulzg

Description

@dschulzg

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:

  1. As admin generate an "Invite User" link and visit it.
  2. Enter a username of the form: space[email protected] and the rest of the form the usual way
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions