Menu
Public repository / fee5b6c2cde89fa6bf8dc51068af7336b56a88b8
AkurAI-Framework / site/frontend/account.html
Latest change 30ab30f1996c3474188ec3dd71ba00efc5e3eb8b - feat(auth): email-OTP login flow + user roles by Ólafur Búi Ólafsson
{% include "header" %}
<main class="container">
<header class="page-head">
<span class="eyebrow">Protected page</span>
<h1>Your account</h1>
<p class="lede">This page is gated by the session cookie. Reaching it without a valid
session redirects to <a href="/login">/login</a>; reaching it with one shows the signed-in
user below.</p>
</header>
<article class="card stack" style="max-width:420px;margin-bottom:24px">
<p>Signed in as <strong>{{ username }}</strong>.</p>
<p class="muted small">Role: <strong>{{ role }}</strong>{% if is_admin %} (admin access){% endif %}.</p>
<form method="post" action="/logout">
<button class="btn" type="submit">Sign out</button>
</form>
</article>
<p class="muted small">Sign out clears the session in <code>data/sessions.db</code> and
expires the cookie (<code>Max-Age=0</code>).</p>
</main>
{% include "footer" %}