Files
blog/user/plugins/admin/themes/grav/templates/login.html.twig

11 lines
344 B
Twig
Raw Normal View History

2022-09-30 20:02:02 +01:00
{% set user = grav.user %}
{% if user.username and user.authenticated %}
{% if not user.authorized and user.twofa_enabled %}
{% include 'partials/login-twofa.html.twig' %}
{% else %}
{% include 'partials/login-logout.html.twig' %}
{% endif %}
{% else %}
{% include 'partials/login-form.html.twig' %}
{% endif %}