From b13e12b7bd3087ba1da6a138ac9c60664bede37d Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 26 Jun 2022 18:09:58 +1000 Subject: [PATCH] Adds a template for handling 403 errors due to CSRF issues (#3260) --- InvenTree/templates/403_csrf.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 InvenTree/templates/403_csrf.html diff --git a/InvenTree/templates/403_csrf.html b/InvenTree/templates/403_csrf.html new file mode 100644 index 0000000000..7eb98ff4a1 --- /dev/null +++ b/InvenTree/templates/403_csrf.html @@ -0,0 +1,23 @@ +{% extends "account/base.html" %} + +{% load i18n %} +{% load inventree_extras %} + +{% block page_title %} +{% inventree_title %} | {% trans "Permission Denied" %} +{% endblock %} + +{% block content %} +

{% trans "Authentication Failure" %}

+ +
+ {% trans "You have been logged out from InvenTree." %} +
+
+
+ + {% trans "Login" %} + +
+ +{% endblock %}