diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-02-07 18:35:43 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-02-07 18:35:43 -1000 |
| commit | a241995734cecff39f57732916a73052caf4c175 (patch) | |
| tree | 712cb8c15c1139c3562747d857aed7de1ede360c /.idea/misc.xml | |
| parent | d793e16f336189d38a9d43310713dd13e3b7c438 (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 '.idea/misc.xml')
0 files changed, 0 insertions, 0 deletions
