Code

Opened 4 years ago

Closed 4 years ago

Last modified 4 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:

Description

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.

Attachments (0)

Change History (2)

comment:1 Changed 4 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 4 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.