In django.contrib.auth.forms.AuthenticationForm there is no separate check for empty form input
Reported by: |
lgp171188@… |
Owned by: |
nobody |
Component:
|
contrib.auth
|
Version:
|
1.3
|
Severity:
|
Normal
|
Keywords:
|
|
Cc:
|
mathieu.agopian@…
|
Triage Stage:
|
Unreviewed
|
Has patch:
|
no
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
yes
|
UI/UX:
|
no
|
In django.contrib.auth.forms.AuthenticationForm
there is no check check for empty form input data and treat it as a separate validation error. Instead it returns the generic Your username and password didn't match. Please try again.
which is more appropriate for invalid credentials.
Change History
(2)
Resolution: |
→ worksforme
|
Status: |
new → closed
|
Cc: |
mathieu.agopian@… added
|
I'm going to close this ticket as "worksforme", as with the information you provided, i couldn't reproduce the bug.
Please, if you believe this is indeed a bug, feel free to reopen this ticket, and provide extensive details on how to reproduce it, thanks !
FYI, here's the code I used to try to reproduce the bug:
When i go to /form/, i do indeed see a username and a password input fields, and if i submit straight away, without submitting any data, there's an error for each field stating "This field is required."