Skip to content

Check validity of username at signup #9

@martinzlocha

Description

@martinzlocha

Detailed Description

When a student is signing up the form should check whether the provided username is valid.

Context

This change will reduce the number of usernames submitted which contain typo's. It will also verify that the username provided isn't an arbitrary string.

Possible Implementation

Validating of user input into forms is done within forms.py. Usage of RegEx is preferred over manual string parsing. If an invalid username is provided then the form should raise a ValidationError.

Example of valid usernames:

  • mz4315
  • abc13
  • xy12315
  • ab117

Example of invalid usernames:

  • a1216
  • abcf16
  • a1b17
  • ab1210

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions