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
@@ -56,6 +56,7 @@ const SERVER_MESSAGES = {
'invalid setup code': 'Código de configuração inválido.',
'the last administrator must remain': 'O último administrador precisa continuar existindo.',
'MFA is mandatory for administrators': 'O MFA é obrigatório para administradores.',
'MFA is not enabled': 'O MFA não está ativo nesta conta.',
'no enrollment in progress': 'Nenhum cadastro de MFA em andamento.',
'username is already in use': 'Este nome de usuário já está em uso.',
'not found': 'Não encontrado.',