mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Replace login_required decorator with a validating one
This one will validate that the url is under /accounts/, which is the only part we are going to be excluding from caching once we move the website to https-only.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
from django.shortcuts import render_to_response
|
||||
from django.http import Http404
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from pgweb.util.decorators import login_required
|
||||
|
||||
from pgweb.util.contexts import NavContext
|
||||
from pgweb.util.helpers import simple_form
|
||||
|
Reference in New Issue
Block a user