login-twofa.html.twig 886 B

1234567891011121314151617181920
  1. {% set form = forms('login-twofa') %}
  2. <form method="post" action="{{ (base_url_relative ~ uri.path)|e }}" class="{{ form_outer_classes }}">
  3. {% for field in form.fields %}
  4. {% if field.type %}
  5. <div>
  6. {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
  7. </div>
  8. {% endif %}
  9. {% endfor %}
  10. {{ nonce_field('login-form', 'login-form-nonce')|raw }}
  11. <div class="{{ form_button_outer_classes ?: 'form-actions secondary-accent' }}">
  12. <div class="form-actions primary-accent">
  13. <button type="submit" class="button" name="task" value="login.logout">{{ 'PLUGIN_LOGIN.BTN_CANCEL'|t }}</button>
  14. <button type="submit" class="button primary" name="task" value="login.twofa">{{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</button>
  15. </div>
  16. </div>
  17. </form>