{# This template receives different input based on state of tf-setup. In addition to form values the following are available: On GET or unsuccessful POST: choices: Value of SECURITY_TWO_FACTOR_ENABLED_METHODS (with possible addition of 'delete') two_factor_required: Value of SECURITY_TWO_FACTOR_REQUIRED primary_method: the translated name of two-factor method that has already been set up. On successful POST: chosen_method: which 2FA method was chosen (e.g. sms, authenticator) choices: Value of SECURITY_TWO_FACTOR_ENABLED_METHODS changing: boolean - True if user is trying to change/disable 2FA state_token: if changing - this is the new (non-session) way to validate the new 2FA method If chosen_method == 'authenticator': authr_qrcode: the image source for the qrcode authr_key: same key as in qrcode - for possible manual entry authr_username: same username as in qrcode authr_issuer: same issuer as in qrcode #} {% extends "security/base.html" %} {% from "security/_macros.html" import render_field_with_errors, render_field, render_field_no_label, render_field_errors, render_form_errors %} {% block content %} {% include "security/_messages.html" %}