Skip to content
Browse files

Added middleware

  • Loading branch information...
1 parent 3e479ce commit b1f297b6f01066b6e1a380bb43433292f6e4f318 @thedjpetersen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 middleware/authentication.py
View
2 middleware/authentication.py
@@ -3,7 +3,7 @@
class AuthenticationMiddleware(object):
def process_request(self, request):
- if len(request.path_info)>1:
+ if not request.path_info in ['/', '/login/']:
if 'regclass' not in request.session:
return HttpResponseRedirect('/')
return None

0 comments on commit b1f297b

Please sign in to comment.
Something went wrong with that request. Please try again.