{% extends "layout.html" %} {% block title %}MFA settings — kitgit{% endblock %} {% block content %}
settings

Two-factor authentication

{% if let Some(err) = error %}
{{ err }}
{% endif %} {% if let Some(msg) = message %}
{{ msg }}
{% endif %}
{% if enabled %}

Authenticator app MFA is enabled for your account.

{{ recovery_remaining }} recovery code(s) remaining.

back to account
{% else if pending %}

Scan this QR code with your authenticator app, then enter a code to confirm.

{% if let Some(qr) = qr_data_uri %}

MFA QR code

{% endif %} {% if let Some(sec) = secret %}

Or enter this secret manually: {{ sec }}

{% endif %}
cancel
{% else %}

Protect your account with a time-based one-time password (TOTP) from an authenticator app.

back to account
{% endif %}
{% if let Some(codes) = recovery_codes %}
recovery codes

Save these codes somewhere safe. Each can be used once if you lose your authenticator. They will not be shown again.

{% endif %}
{% endblock %}