mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 07:46:31 +01:00
Fixed 2FA form showing up even if user has not turned on the feature [#1442](https://github.com/getgrav/grav-plugin-admin/issues/1442)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.8.1
|
||||
## mm/dd/2018
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed 2FA form showing up even if user has not turned on the feature [#1442](https://github.com/getgrav/grav-plugin-admin/issues/1442)
|
||||
|
||||
# v1.8.0
|
||||
## 05/11/2018
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{% set user = grav.user %}
|
||||
|
||||
{% if user.username and user.authenticated %}
|
||||
{% if user.authorized %}
|
||||
{% include 'partials/login-logout.html.twig' %}
|
||||
{% else %}
|
||||
{% 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' %}
|
||||
|
||||
Reference in New Issue
Block a user