aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/forbidden.htm14
-rw-r--r--www/forbidden.php5
2 files changed, 16 insertions, 3 deletions
diff --git a/data/templates/forbidden.htm b/data/templates/forbidden.htm
index 04b8fb6..585c2fe 100644
--- a/data/templates/forbidden.htm
+++ b/data/templates/forbidden.htm
@@ -5,11 +5,21 @@
<img src="/images/access_denied.png" align='left' alt="acces denied"/>
<h2>Access Denied</h2>
+{% if identity %}
<p>
- We're sorry; but you are not allowed to access this page.
+ You are logged in with the following OpenID:
</p>
<p>
- You may <a href="/login">log in</a> if you want.
+ <code>{{identity}}</code>
</p>
+<p>
+ Unfortunately, your OpenID is not unlocked.
+ Contact the site administrator to get access.
+</p>
+{% else %}
+<p>
+ We're sorry; but you have to <a href="/login">log in</a> to access this page.
+</p>
+{% endif %}
{% endblock %}
diff --git a/www/forbidden.php b/www/forbidden.php
index fc166eb..6c44099 100644
--- a/www/forbidden.php
+++ b/www/forbidden.php
@@ -5,7 +5,10 @@ namespace phorkie;
*/
render(
- 'forbidden'
+ 'forbidden',
+ array(
+ 'identity' => isset($_SESSION['identity']) ? $_SESSION['identity'] : null
+ )
);
exit();
?>