Commit d9c47112 authored by c24b's avatar c24b

Remove print user autenticated

parent 462c9ecc
...@@ -16,6 +16,7 @@ def requires_auth(func): ...@@ -16,6 +16,7 @@ def requires_auth(func):
Also passes the URL to redirect towards as a GET parameter. Also passes the URL to redirect towards as a GET parameter.
""" """
def _requires_auth(request, *args, **kwargs): def _requires_auth(request, *args, **kwargs):
#print(request.user.is_authenticated())
if not request.user.is_authenticated(): if not request.user.is_authenticated():
url = '/auth/login/?next=%s' % urlencode(request.path) url = '/auth/login/?next=%s' % urlencode(request.path)
return redirect(url) return redirect(url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment