Skip to content
Snippets Groups Projects
Commit b25245f4 authored by Art's avatar Art :lizard:
Browse files

I already foresee angry confused users, so I added a verbose 403 page :)

parent d3aef044
Branches
Tags milter-0_7_2
No related merge requests found
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>403</title>
</head>
<body>
<h1>403 Forbidden</h1>
<p>
You (<code><strong>{{ request.user }}</strong></code>) don't have permissions to access this page.
</p>
{% if not request.user.is_anonymous %}<p><a href="{% url "sso-logout" %}">Log Out</a></p>{% endif %}
</body>
</html>
...@@ -104,7 +104,7 @@ class LoggedOutLocallyView(TemplateView): ...@@ -104,7 +104,7 @@ class LoggedOutLocallyView(TemplateView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)
context["IDP_LOGOUT_URL"] = app_settings.IDP_LOGOUT_URL context["IDP_LOGOUT_URL"] = app_settings.IDP_LOGOUT_URL or "#"
context["THIS_SITE"] = get_current_site(self.request) context["THIS_SITE"] = get_current_site(self.request)
return context return context
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment