Skip to content

Commit 00bb297

Browse files
committed
Add logout button to access denied page.
1 parent 7fa2055 commit 00bb297

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

default-views/auth/no-permission.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@
1717
You are currently logged in as <code>{{webId}}</code>,
1818
but do not have permission to access <code>{{currentUrl}}</code>.
1919
</p>
20+
<p>
21+
<button class="btn btn-danger" onclick="logout()">Log out</button>
22+
</p>
2023
</div>
2124
</div>
2225
</div>
26+
<script src="/common/js/solid-auth-client.bundle.js"></script>
27+
<script>
28+
async function logout () {
29+
await solid.auth.logout()
30+
location.reload()
31+
}
32+
</script>
2333
</body>
2434
</html>

0 commit comments

Comments
 (0)