Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Commit

Permalink
no bug. When no ldap is available, don't fail excessively
Browse files Browse the repository at this point in the history
  • Loading branch information
Pike committed May 20, 2013
1 parent cd296aa commit 7639482
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/accounts/views.py
Expand Up @@ -14,7 +14,11 @@
from django.utils import simplejson as json
from django.contrib.auth.views import login as django_login
from forms import AuthenticationForm
from lib.auth.backends import AUTHENTICATION_SERVER_ERRORS
try:
from lib.auth.backends import AUTHENTICATION_SERVER_ERRORS
except ImportError:
# we don't have ldap installed, let's not catch any ldap errors
AUTHENTICATION_SERVER_ERRORS = tuple()
from session_csrf import anonymous_csrf


Expand Down

0 comments on commit 7639482

Please sign in to comment.