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
+3
View File
@@ -42,6 +42,9 @@ func (s *Server) Handler(staticFS http.FileSystem) http.Handler {
mux.HandleFunc("/login", s.handleLogin)
mux.HandleFunc("/logout", s.handleLogout)
mux.HandleFunc("/", s.requireLogin(s.handleDashboard))
mux.HandleFunc("/account", s.requireLogin(s.handleAccount))
mux.HandleFunc("/account/profile", s.requireLogin(s.handleAccountProfile))
mux.HandleFunc("/account/password", s.requireLogin(s.handleAccountPassword))
mux.HandleFunc("/shares/calendar", s.requireLogin(s.handleCalendarShare))
mux.HandleFunc("/shares/addressbook", s.requireLogin(s.handleAddressBookShare))
mux.HandleFunc("/resources/calendar", s.requireLogin(s.handleCalendarResource))