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
@@ -276,14 +276,6 @@ func (d *DB) UnclaimSetup(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ClearSetupClaim resets the local "setup completed" flag so the setup screen
|
||||
// reappears. Used by the local break-glass password-reset flow (see
|
||||
// handleResetConfirm in auth.go) -- it deliberately does not touch the
|
||||
// underlying AuthGuard account at all.
|
||||
func (d *DB) ClearSetupClaim(ctx context.Context) error {
|
||||
return d.UnclaimSetup(ctx)
|
||||
}
|
||||
|
||||
// GetCachedTOTPEnabled returns the best-effort locally-cached TOTP-enabled
|
||||
// state for an AuthGuard account, or false if this instance has never
|
||||
// observed that account's TOTP state. See handleTOTPStatus's doc comment in
|
||||
|
||||
Reference in new issue
Block a user