Revision b93a38c5

b/snf-astakos-app/astakos/im/auth_backends.py
73 73
    def authenticate(self, username=None, password=None):
74 74
        # First check whether a user having this email exists
75 75
        try:
76
            user = AstakosUser.objects.get_by_identifier(username,
77
                                                         is_active=True)
78
            if  user.check_password(password):
79
                return user
76
            user = AstakosUser.objects.get_by_identifier(username)
80 77
        except AstakosUser.DoesNotExist:
81 78
            return None
82 79

  

Also available in: Unified diff