#31978: Include hidden username field on password reset to help password
managers
-------------------------------------+-------------------------------------
Reporter: Collin Anderson | Owner: Collin
Type: | Anderson
Cleanup/optimization | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jaap Roes):
I just came across this by chance and noticed that `<input style="display:
none;" autocomplete="username" value="{{ form.user.username }}">` is used
in the template. Shouldn't `form.user.get_username` be used here? In my
custom `User` model the username field is ommited, only `email` exists,
and `User.USERNAME_FIELD` is set to `email`.
--
Ticket URL: <https://code.djangoproject.com/ticket/31978#comment:5>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.5eb6edf046451d6552dd42aa05367216%40djangoproject.com.