#19327: Admin doesn't handle double login attempts
-------------------------------------+-------------------------------------
     Reporter:  KJ                   |                    Owner:  KJ
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
  sensitive_post_parameters, login   |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  1
  Needs tests:  1                    |                    UI/UX:  0
Easy pickings:  1                    |
-------------------------------------+-------------------------------------

Comment (by adupin):

 Regarding the check if the user is authenticated: If i got it right, the
 if-statement in line 198 checks the user's permissions (i.e. is_active and
 is_staff) so only authenticated users can reach the lines from KJ's patch.
 There, checking for LOGIN_FORM_KEY seems to be the right way to find out
 if it's a login attempt by an already authenticated user.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19327#comment:4>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to