Use cherrypy handlers to render error pages
[cascardo/ipsilon.git] / templates / unauthorized.html
index ee2f412..cdb34da 100644 (file)
@@ -2,7 +2,11 @@
 {% block main %}
 <div class="col-sm-12">
   <h1>401 - Unauthorized</h1>
-  <p>Authentication was not successful</p>
+  {% if message: %}
+    <p>{{ message }}</p>
+  {% else %}
+    <p>Authentication was not successful</p>
+  {% endif %}
   <p><a href="{{ basepath }}/login" title="Login">Try to login again</a></p>
 </div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}