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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user