mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Adds a template for handling 403 errors due to CSRF issues (#3260)
This commit is contained in:
parent
8c6e3db774
commit
b13e12b7bd
23
InvenTree/templates/403_csrf.html
Normal file
23
InvenTree/templates/403_csrf.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends "account/base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load inventree_extras %}
|
||||
|
||||
{% block page_title %}
|
||||
{% inventree_title %} | {% trans "Permission Denied" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{% trans "Authentication Failure" %}</h3>
|
||||
|
||||
<div class='alert alert-danger alert-block'>
|
||||
{% trans "You have been logged out from InvenTree." %}
|
||||
</div>
|
||||
<hr>
|
||||
<div class='btn-group float-right' role='group'>
|
||||
<a type='button' class='btn btn-primary' href='{% url "account_login" %}'>
|
||||
<span class='fas fa-sign-in-alt'></span> {% trans "Login" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user