init
This commit is contained in:
11
user/plugins/admin/themes/grav/templates/login.html.twig
Normal file
11
user/plugins/admin/themes/grav/templates/login.html.twig
Normal file
@@ -0,0 +1,11 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user