summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAlexander Gaevsky <sasha@sasha0.ru>2016-02-05 21:03:06 +0200
committerTim Graham <timograham@gmail.com>2016-03-23 09:01:52 -0400
commit107165c4b04f4e5a830a60b6c66b2e5d8fb1d242 (patch)
tree2fdb315783b985925bf73a1624d62e2df5f2aba7 /django
parente0a3d937309a82b8beea8f41b17d8b6298da2a86 (diff)
Fixed #24987 -- Allowed inactive users to login with the test client.
Diffstat (limited to 'django')
-rw-r--r--django/test/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/client.py b/django/test/client.py
index 61c2136b09..42b325bd14 100644
--- a/django/test/client.py
+++ b/django/test/client.py
@@ -599,8 +599,7 @@ class Client(RequestFactory):
"""
from django.contrib.auth import authenticate
user = authenticate(**credentials)
- if (user and user.is_active and
- apps.is_installed('django.contrib.sessions')):
+ if user and apps.is_installed('django.contrib.sessions'):
self._login(user)
return True
else: