Code

Opened 4 years ago

Closed 4 years ago

Last modified 20 months ago

#14089 closed Uncategorized (duplicate)

Username validation allows '@' character, while auth backend explicitly prevents this.

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

Description

When editing users, the help_text for username states: "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."
However, when trying to log in with a username that (thus validly) contains "@", you get the error "Usernames cannot contain the '@' character.".

Of course, the login backend can be replaced with a custom one, but if using a non-existent username containing "@", you still get the contradictory error message.

I think the (useless) error message should be removed if the model allows "@".

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by kmtracey

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

This is #8342.

comment:2 Changed 20 months ago by anonymous

  • Easy pickings unset
  • Severity set to Normal
  • Type set to Uncategorized
  • UI/UX unset

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.