{% extends "base.html" %} {% block title %}Two-factor authentication – Memlord{% endblock %} {% block content %} {% if request.query_params.get('totp_enabled') %}
Two-factor authentication has been enabled.
{% endif %} {% if request.query_params.get('totp_disabled') %}
Two-factor authentication has been disabled.
{% endif %} {% if error %}
{{ error }}
{% endif %} {% if totp_enabled %}
Status
2FA is active on your account.

To disable two-factor authentication, enter your current password below.

Cancel
{% else %}
Enable 2FA

Scan the QR code with Apple Passwords, Google Authenticator, Authy, or any TOTP-compatible app. Then enter the 6-digit code to confirm.

{% if qr_svg %}
QR code
{% endif %} {% if secret %}

Or enter this key manually:

{{ secret }}
{% endif %}
Cancel
{% endif %} {% endblock %}