Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12128 closed (wontfix)

Remove restrictive 30 character limit from username of AuthenticationForm.

Reported by: SmileyChris Owned by: nobody
Component: contrib.auth Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


While #8274 at least makes it possible to override the form now, the current default doesn't make sense.

The AuthenticationForm is not directly tied to the User model - any backend could use it. Therefore, there should not be a default max_length for the username.

Change History (2)

comment:1 Changed 6 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

It may not be tied to the User model, but it is the natural authentication form *for* the User model.

comment:2 Changed 6 years ago by SmileyChris

It's the natural authentication form for *all* auth backends, the default of which uses the User model. Still think this is a rather silly constraint - if there was a max length check, it should happen in the backend.

Note: See TracTickets for help on using tickets.
Back to Top