login.html.twig 344 B

1234567891011
  1. {% set user = grav.user %}
  2. {% if user.username and user.authenticated %}
  3. {% if not user.authorized and user.twofa_enabled %}
  4. {% include 'partials/login-twofa.html.twig' %}
  5. {% else %}
  6. {% include 'partials/login-logout.html.twig' %}
  7. {% endif %}
  8. {% else %}
  9. {% include 'partials/login-form.html.twig' %}
  10. {% endif %}