Opened 7 years ago
Closed 7 years ago
#29327 closed Bug (invalid)
UserCreationForm's password field help_text displays raw HTML
Reported by: | Shahil Hussain | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 2.0 |
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
the 'Password field' of the user creation form has
help text as:
<ul><li>Your password can't be too similar to your other personal information.</li><li>Your password must contain at least 8 characters.</li><li>Your password can't be a commonly used password.</li><li>Your password can't be entirely numeric.</li></ul>
it is not the actual list (it's the code getting shown!!!)
#I know that one can change it himself but it would be quite inconvenient
so just rectify this small issue
Change History (1)
comment:1 by , 7 years ago
Component: | Forms → contrib.auth |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Summary: | Django's usercreationform → UserCreationForm's password field help_text displays raw HTML |
You need to use the
|safe
filter withhelp_text
(see #25053). I'm assuming this problem is in a template not provided by Django. If not, please reopen with details.