fix(ui): keep recovery codes on screen and report failed logout

While one-time codes are visible the 401 redirect is suppressed and a
beforeunload guard is active until the done button. MFA buttons follow the
account state. A failed logout shows an error instead of looking successful.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 21:03:27 -03:00
1 parent 348e61ca95
commit 513741e403
5 files changed
+60 -8

No files matched your search

+1
View File
@@ -70,6 +70,7 @@
<button id="refreshBtn" type="button" class="btn">Atualizar status</button>
<button id="settingsBtn" type="button" class="icon-btn" aria-label="Configurações" title="Configurações">⚙</button>
<span id="topUser" class="mono user-chip"></span>
<span id="logoutStatus" class="form-error" role="alert" hidden></span>
<button id="logoutBtn" type="button" class="btn">Sair</button>
</div>
</header>