Opened 6 years ago

Closed 6 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&#39;t be too similar to your other personal information.</li><li>Your password must contain at least 8 characters.</li><li>Your password can&#39;t be a commonly used password.</li><li>Your password can&#39;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 Tim Graham, 6 years ago

Component: Formscontrib.auth
Resolution: invalid
Status: newclosed
Summary: Django's usercreationformUserCreationForm's password field help_text displays raw HTML

You need to use the |safe filter with help_text (see #25053). I'm assuming this problem is in a template not provided by Django. If not, please reopen with details.

Note: See TracTickets for help on using tickets.
Back to Top