diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-09-17 23:48:04 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-09-17 23:48:04 +0200 |
| commit | d6d44a3855f93afebd962843cfdfb9952912443e (patch) | |
| tree | 088a70c13e8f5ebda7c3372f5a3418b30e355a73 | |
| parent | f662a50e02abe50321766c84a23b977a455d401c (diff) | |
| download | phorkie-d6d44a3855f93afebd962843cfdfb9952912443e.tar.gz phorkie-d6d44a3855f93afebd962843cfdfb9952912443e.zip | |
show openid of user in forbidden page
| -rw-r--r-- | data/templates/forbidden.htm | 14 | ||||
| -rw-r--r-- | www/forbidden.php | 5 |
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(); ?> |
