Permalink
Browse files

There won't be automatic logins anymore, password is required.

  • Loading branch information...
1 parent 7ccc2bf commit b3dc0ce82aeb340b7fbadd0c047852eb9c940254 @william-gr william-gr committed Nov 1, 2013
Showing with 2 additions and 10 deletions.
  1. +2 −10 gui/freeadmin/middleware.py
@@ -143,18 +143,10 @@ def process_view(self, request, view_func, view_args, view_kwargs):
# This is required so django tests can run
if settings.ROOT_URLCONF != mysettings.ROOT_URLCONF:
return None
-
- #if not request.user.is_authenticated():
- # user = bsdUsers.objects.filter(bsdusr_uid=0)
- # if user.exists():
- # user = user[0]
- # backend = get_backends()[0]
- # user.backend = "%s.%s" % (backend.__module__,
- # backend.__class__.__name__)
- # login(request, user)
-
+ # Login url is cleared
if request.path == settings.LOGIN_URL:
return None
+ # API use its own authentication method
if request.path.startswith('/api/'):
return None
if hasattr(view_func, '__is_public'):

0 comments on commit b3dc0ce

Please sign in to comment.