Ticket #4526: test_client_login_fix.diff

File test_client_login_fix.diff, 725 bytes (added by marcin@…, 17 years ago)

A patch that fixes the bug

  • client.py

     
    228228        are incorrect, or if the Sessions framework is not available.
    229229        """
    230230        user = authenticate(**credentials)
    231         if user and 'django.contrib.sessions' in settings.INSTALLED_APPS:
     231        if user and user.is_active and 'django.contrib.sessions' in settings.INSTALLED_APPS:
    232232            obj = Session.objects.get_new_session_object()
    233233
    234234            # Create a fake request to store login details
     
    251251            return True
    252252        else:
    253253            return False
    254            
    255  No newline at end of file
     254           
Back to Top