'Authenticate users, but allow inactive users (with u.is_active == False)
to authenticate.'

def validate_user(self, username, password, client, request, *args, **kwargs):

    user = self._authenticate(username=username, password=password)
    if (user is not None):
        request.user = user
        return True
    return False
