#25457: createsuperuser password error message has incorrect format
------------------------------+--------------------
Reporter: uranusjr | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 1.9a1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 1
------------------------------+--------------------
{{{
$ ./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.
--
Ticket URL: <https://code.djangoproject.com/ticket/25457>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.8177f8ad6cc7e700c26e3ed3cdd3b0d5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.