Add customizable unauthorized URL. Fixes #23

This commit is contained in:
Matt Wright
2012-07-12 12:47:21 -04:00
parent 8d1bdca1de
commit dfcb3cdcc6
6 changed files with 47 additions and 13 deletions
+4
View File
@@ -106,6 +106,10 @@ def create_app(auth_config):
def admin_or_editor():
return render_template('index.html', content='Admin or Editor Page')
@app.route('/unauthorized')
def unauthorized():
return render_template('unauthorized.html')
return app
+3
View File
@@ -0,0 +1,3 @@
{% include "_messages.html" %}
{% include "_nav.html" %}
<h1>You are not allowed to access the requested resouce</h1>