#28645: The inactive user error never is raised in login form
-----------------------------------------------+------------------------
               Reporter:  Guilherme Junqueira  |          Owner:  nobody
                   Type:  Bug                  |         Status:  new
              Component:  contrib.auth         |        Version:  1.11
               Severity:  Normal               |       Keywords:
           Triage Stage:  Unreviewed           |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+------------------------
 Looking in file django.contrib.auth.forms

 The class AuthenticationForm and clean method.

 The inactive user never is raised, this happens because after Django 1.10
 all users that is not active cannot authenticate, so self.user_chache is
 always be None for inactive users, even if has a correct user and pass.

 So the code needed to be changed to raise the correct error for a user
 that is not active.

 My stackoverflow thread about this:
 https://stackoverflow.com/questions/46459258/how-to-inform-a-user-that-he-
 is-not-active-in-django-login-view/46459998#46459998

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28645>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.d42cbda65d5206d67da0b678123180de%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to