#27045 closed Cleanup/optimization (fixed)
Document that AUTH_PASSWORD_VALIDATORS doesn't apply to create_user() and create_superuser()
Description (last modified by ) ¶
According to this thread, the create_user()
method does not enforce the password validators which I ran into while trying to unittest my validation settings. This seems quite dangerous especially since most validation in django is normally on the model level and many developers like myself may assume these methods would enforce these settings.
Change History (4)
comment:1 by , 9 years ago
Component: | Core (Management commands) → Documentation |
---|---|
Description: | modified (diff) |
Has patch: | set |
Owner: | changed from | to
Status: | new → assigned |
Summary: | create_user and create_superuser do not enforce AUTH_PASSWORD_VALIDATORS → Document that AUTH_PASSWORD_VALIDATORS doesn't apply to create_user() and create_superuser() |
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
comment:2 by , 9 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Here's a documentation PR to clarify the design decision about this.