#14089 closed Uncategorized (duplicate)
Username validation allows '@' character, while auth backend explicitly prevents this.
Reported by: | 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 "@".
Change History (2)
comment:1 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
Easy pickings: | unset |
---|---|
Severity: | → Normal |
Type: | → Uncategorized |
UI/UX: | unset |
Note:
See TracTickets
for help on using tickets.
This is #8342.