﻿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
31364	django.contrib.auth.forms.AuthenticationForm assumes 'username' as the USERNAME_FIELD	Jihoon Park	nobody	"https://github.com/django/django/blob/3.0.4/django/contrib/auth/forms.py#L214 reads:
`self.user_cache = authenticate(self.request, username=username, password=password)`

However, `USERNAME_FIELD` may not be `'username'`. This can be fixed very easily:
`credentials = {UserModel.USERNAME_FIELD: username, 'password': password}`
`self.user_cache = authenticate(self.request, **credentials)`
"	Bug	closed	Forms	3.0	Normal	invalid	AuthenticationForm username		Unreviewed	0	0	0	0	1	0
