Custom 403 Page
Added custom 403 page. Change-Id:Id5ccb3835748c9a627a4a27b9332abf1f45a1648
This commit is contained in:
@@ -5,6 +5,10 @@ from . import main
|
|||||||
def page_not_found(e):
|
def page_not_found(e):
|
||||||
return render_template('404.html'), 404
|
return render_template('404.html'), 404
|
||||||
|
|
||||||
|
@main.app_errorhandler(403)
|
||||||
|
def internal_server_error(e):
|
||||||
|
return render_template('403.html'), 403
|
||||||
|
|
||||||
@main.app_errorhandler(500)
|
@main.app_errorhandler(500)
|
||||||
def internal_server_error(e):
|
def internal_server_error(e):
|
||||||
return render_template('500.html'), 500
|
return render_template('500.html'), 500
|
||||||
13
dash/templates/403.html
Normal file
13
dash/templates/403.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{% extends "adminlte/base_without_nav.html" %}
|
||||||
|
|
||||||
|
{% block title %}403 ERROR{% endblock %}
|
||||||
|
{% block description %}dash-stack - Permission Error{% endblock %}
|
||||||
|
{% block bodytag %}login-page{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>You do not have permission to access this page.</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user