Verified Commit 8ee856fd authored by Štěpán Henek's avatar Štěpán Henek 🌩

bottle_csrf.py moved to middleware/

parent 249d385b
......@@ -32,7 +32,7 @@ from foris.utils import (
redirect_unauthenticated, is_safe_redirect, messages
)
from foris.utils.routing import reverse
from foris.utils.bottle_csrf import update_csrf_token, CSRFValidationError
from foris.middleware.bottle_csrf import update_csrf_token, CSRFValidationError
from foris.utils.translators import _, translations
......
......@@ -33,7 +33,7 @@ from foris.nuci.exceptions import ConfigRestoreError
from foris.nuci.helpers import contract_valid
from foris.nuci.preprocessors import preproc_disabled_to_agreed
from foris.utils import login_required, messages
from foris.utils.bottle_csrf import CSRFPlugin
from foris.middleware.bottle_csrf import CSRFPlugin
from foris.utils.routing import reverse
from .request_decorator import require_contract_valid
......
......@@ -40,7 +40,7 @@ from .plugins import ForisPluginLoader
from .utils import (
is_user_authenticated, template_helpers
)
from .utils.bottle_csrf import get_csrf_token, CSRFPlugin
from .middleware.bottle_csrf import get_csrf_token, CSRFPlugin
from .utils import DEVICE_CUSTOMIZATION, messages
from .utils.routing import reverse, static as static_path
from .utils.translators import translations, ugettext, ungettext
......
......@@ -29,7 +29,7 @@ from foris.nuci.modules.uci_raw import build_option_uci_tree
from foris.nuci.notifications import make_notification_title
from foris.nuci.preprocessors import preproc_disabled_to_agreed
from foris.utils import login_required, messages
from foris.utils.bottle_csrf import CSRFPlugin
from foris.middleware.bottle_csrf import CSRFPlugin
from foris.utils.routing import reverse
from foris.utils.translators import gettext_dummy as gettext, _
......
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