login-twofa.html.twig 796 B

1234567891011121314151617181920212223242526
  1. {% embed 'partials/login.html.twig' with {title:'Grav 2-Factor Authentication', redirect: admin.session.redirect} %}
  2. {% block integration %}
  3. {% endblock %}
  4. {% block form %}
  5. {% set form = forms['login-twofa'] %}
  6. {% for field in form.fields %}
  7. {% if field.type %}
  8. <div>
  9. {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
  10. </div>
  11. {% endif %}
  12. {% endfor %}
  13. <div class="{{ form_button_outer_classes ?: 'form-actions secondary-accent' }}">
  14. <div class="form-actions primary-accent">
  15. <button type="submit" class="button primary" name="task" value="twofa">{{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</button>
  16. </div>
  17. </div>
  18. {% endblock %}
  19. {% endembed %}