I double checked. the user is active.
Not using a custom user backend but in the "AUTHENTICATION_BACKENDS" I have 
this set:

AUTHENTICATION_BACKENDS = (
    'bla.models.CaseInsensitiveModelBackend',


)



class CaseInsensitiveModelBackend(object):
    def authenticate(self, username=None, password=None):
        try:
            user = User.objects.get(username__iexact=username)
            if user.check_password(password):
                return user
        except User.DoesNotExist:
            return None


    def get_user(self, user_id):
        try:
            return User.objects.get(pk=user_id)
        except User.DoesNotExist:
            return None


On Monday, August 18, 2014 2:28:33 PM UTC+3, Collin Anderson wrote:
>
> Is the user active? Are you using a custom user backend? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/698062f0-638f-4d40-adc0-13250a9fd192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to