Add account management page

Add a new /web/account page, reachable by clicking the username in
the nav, with two forms: updating display name/email, and changing
the password (requires the current password, min 8 chars, confirm
match). Add db.SetProfile to persist display name/email.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-08-21 06:32:18 +02:00
co-authored by Copilot
parent 1c039e6396
commit 8b10386c91
9 changed files with 527 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ templ Layout(title string, username string) {
</div>
if username != "" {
<div class="flex items-center gap-4 text-sm text-gray-600">
<span>{ username }</span>
<a href="/web/account" class="hover:text-indigo-600">{ username }</a>
<a href="/web/logout" class="text-red-600 hover:underline">Logout</a>
</div>
}