Skip to content

Commit

Permalink
There won't be automatic logins anymore, password is required.
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Nov 4, 2013
1 parent 7ccc2bf commit b3dc0ce
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions gui/freeadmin/middleware.py
Expand Up @@ -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'):
Expand Down

0 comments on commit b3dc0ce

Please sign in to comment.