Remove local admin reset now that AuthGuard owns that recovery flow
This project's own "break glass" admin reset never actually touched the centralized AuthGuard account - it only printed a local one-time code and, on confirm, wiped this project's local "setup completed" flag so its own setup screen reappeared, leaving the real AuthGuard account untouched and orphaned from this project's perspective. AuthGuard now has its own proper superadmin reset in its web UI, which is where this recovery path belongs going forward - having every integrated project also show a "Reset admin account" link that does something different and doesn't actually solve "I forgot my AuthGuard password" was confusing and redundant. Removes the backend reset handlers, their routes, the local ResetManager field/init, any local cleanup method that only existed to serve them, and the frontend API calls plus the onRequestReset/onConfirmReset wiring that made the shared AuthPage component's reset link appear. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec4bdd6ac7
commit
4e39b5ac67
6 files changed
+97
-199
No files matched your search
@@ -132,8 +132,6 @@ func (s *Server) registerRoutes(mux *http.ServeMux, webRoot fs.FS) {
|
||||
// Health and auth bootstrap routes are intentionally public.
|
||||
mux.HandleFunc("GET /health", s.handleHealth)
|
||||
mux.HandleFunc("GET /api/auth/status", s.auth.handleStatus)
|
||||
mux.HandleFunc("POST /api/auth/reset/request", s.auth.handleResetRequest)
|
||||
mux.HandleFunc("POST /api/auth/reset/confirm", s.auth.handleResetConfirm)
|
||||
mux.HandleFunc("POST /api/auth/setup", s.auth.handleSetup)
|
||||
mux.HandleFunc("POST /api/auth/login", s.auth.handleLogin)
|
||||
mux.Handle("POST /api/auth/logout", s.auth.requireSession(http.HandlerFunc(s.auth.handleLogout)))
|
||||
|
||||
Reference in new issue
Block a user