Menu
Public repository / cde39f7fb9753a1f6b6edfb47f624a948ea18b3d
AkurAI-Framework / site/frontend/account.html
Latest change 0bb96d8dc2b9ebd83dff1e8f321a26b5367af139 - feat(cli): cookie-based session auth + login flow (Batch 4 F3) 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>
<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" %}