Opened 15 years ago

Closed 14 years ago

Last modified 8 years ago

#12128 closed Uncategorized (fixed)

Remove restrictive 30 character limit from username of AuthenticationForm.

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

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.

Change History (5)

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: wontfix
Status: newclosed

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

comment:2 by Chris Beaven, 14 years ago

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.

comment:3 by nehemiah jacob, 8 years ago

Easy pickings: unset
Severity: Normal
Type: Uncategorized
UI/UX: unset

This 'wontfix' decision was taken nearly 6 years ago. Will there be a consideration to reopen this? Because I wish to use subclass AbstractUser model and impose email address as username. In this decade email addresses easily reach 30+ characters.

comment:4 by nehemiah jacob, 8 years ago

Easy pickings: set
UI/UX: set

comment:5 by Tim Graham, 8 years ago

Resolution: wontfixfixed

The AuthenticationForm max_length was increased to 254 characters in bfcda7781a886ab2b7b41937c0f49c088f58a3d7 (Django 1.5) (#19130).

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