summaryrefslogtreecommitdiff
path: root/web/static
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-02-07 18:35:43 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-02-07 18:35:43 -1000
commita241995734cecff39f57732916a73052caf4c175 (patch)
tree712cb8c15c1139c3562747d857aed7de1ede360c /web/static
parentd793e16f336189d38a9d43310713dd13e3b7c438 (diff)
Fix passkey registration showing broken UI when WebAuthn not configured
Root cause: WEBAUTHN_RP_ID and WEBAUTHN_ORIGIN env vars not set in production, so WebAuthn is nil and all passkey endpoints return 404. The settings page was unconditionally showing the passkey registration card, leading to confusing "Failed to start registration" errors. Fix: Pass WebAuthnEnabled flag from main.go through Handler to the settings template, which now conditionally renders the passkey card only when WebAuthn is properly configured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/static')
0 files changed, 0 insertions, 0 deletions