#25457 closed Bug (fixed)
createsuperuser password error message has incorrect format
Reported by: | Tzu-ping Chung | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 1.9a1 |
Severity: | Normal | Keywords: | 1.9 |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Description
$ ./manage.py createsuperuser Username (leave blank to use 'uranusjr'): Email address: Password: Password (again): This password is too short. It must contain at least 8 characters., This password is too common.
The problem is likely in “django/contrib/auth/management/commands/createsuperuser.py”, where error message is currently formatted like this:
try: validate_password(password2, self.UserModel(**fake_user_data)) except exceptions.ValidationError as err: self.stderr.write(', '.join(err.messages)) password = None
So either the exception message needs to be re-formatted to not using a complete sentence, or the messages need to be joined without the comma.
Change History (5)
comment:1 by , 9 years ago
Easy pickings: | set |
---|---|
Keywords: | 1.9 added |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 9 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
It seems that joining with a newline could be appropriate.