{{ _('🔐 Change Admin Password') }}

{{ _('Session will be invalidated immediately after password change') }}

{% if error %} {% endif %} {% if success %} {% endif %}
{{ _('Requirements:') }}
○ {{ _('Length: 8-64 chars') }}
○ {{ _('Mixed case + digits + symbols (≥3 types)') }}
○ {{ _('Not in top 1000 common passwords') }}
{{ _('🛡️ Administrator TOTP') }}
{% if totp_enabled %}
{% elif totp_enrollment %}

{{ _('Add this secret to your authenticator, then verify one code. Recovery codes are shown only during this setup.') }}

{{ _('Setup secret') }}
{{ totp_enrollment.secret }}
{{ _('Authenticator URI') }}
{{ totp_enrollment.otpauth_uri }}
{{ _('One-time recovery codes') }}
{% for code in totp_enrollment.recovery_codes %}{{ code }}{% endfor %}
{% else %}

{{ _('TOTP is disabled. Enable it to require a second factor after the administrator password.') }}

{% endif %}