{% extends "admin/master.html" %} {% from "macro/modal.html" import add_modal_button, add_modal_window %} {% do _template.plugin_manager.enable_plugin(["qrcode", "modal"]) %} {% block title %}setup 2fa{% endblock %} {% block main %}
Scan this QR code with your authenticator app:
Or enter this secret manually: {{ totp_secret }}
{% if not current_user.tfa_enabled %} {{ add_modal_button(url=get_url(".verify_tfa", modal=True, action=url_for(".enable_tfa", enable=True) ), title=gettext("Enable 2FA"), content=gettext("Enable 2FA")) }} {{ add_modal_window() }} {% endif %} {% endblock %} {% block tail %} {{ super() }} {% endblock %}