﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31972	AuthenticationForm.UsernameField does not change field widget according to USERNAME_FIELD.	Maksudul Haque	Maksudul Haque	"First of all,
Thank you for such an amazing Framework. You guys are doing amazing work on Django. really appreciate it. :)

Today I was using {{{AuthenticationForm}}} to log users in but I use a custom User model and it specifies  {{{USERNAME_FIELD}}} as email.
So, when I rendered the form {{{({{ form }})}}} I saw this:

{{{
<input type=""text"" name=""username"" autofocus="""" autocapitalize=""none"" autocomplete=""off"" maxlength=""254"" required="""" id=""id_username"">
}}}



It was using {{{text}}} type input field Though It should render {{{email}}} type field.

I don't know if it is a bug or it was intentional.

If it is a bug I would like to submit a PR! :)"	New feature	closed	contrib.auth	3.1	Normal	wontfix	forms, AuthenticationForm		Unreviewed	0	0	0	0	0	0
