{% extends "base.html" %} {% from "macros.html" import icon, btn, badge %} {% block title %}{{ t('Backup Codes') }}{% endblock %} {% block content %}
{{ icon('alert-triangle', 18) }} {{ t('IMPORTANT: These codes will not be shown again') }}

{{ t('Each backup code can be used once if you lose access to your authenticator app. Store them securely.') }}

{% for code in codes %}
{{ code }}
{% endfor %}
{{ icon('info', 18) }} {{ t('How to use backup codes') }}
  • {{ t('If you lose your phone or authenticator app, use a backup code to login') }}
  • {{ t('Enter the code in the 2FA verification field instead of the TOTP code') }}
  • {{ t('Each code can only be used once') }}
  • {{ t('You can regenerate new codes from your profile settings') }}
{% endblock %}