Skip to content

Commit

Permalink
Take admin setting for 2FA into account when showing user 2FA badge #…
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jan 7, 2019
1 parent bf802b0 commit 89a0b44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
1. [](#improved)
* Unset state from user if not super or user admin
* Make new System Config layout responsive [#1579](https://github.com/getgrav/grav-plugin-admin/issues/1579)
* Take admin setting for 2FA into account when showing user 2FA badge [#1568](https://github.com/getgrav/grav-plugin-admin/issues/1568)
1. [](#bugfix)
* Removed `tabs`, `tab`, and `toggle` fields as they are now in Form plugin

Expand Down
2 changes: 1 addition & 1 deletion themes/grav/templates/partials/nav-user-details.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% include 'partials/nav-user-avatar.html.twig' %}

<div class="admin-user-names">
<h4>{{ admin.user.fullname|e }} {% if admin.user.twofa_enabled %}<span class="badge">2FA</span>{% endif %}</h4>
<h4>{{ admin.user.fullname|e }} {% if admin.user.twofa_enabled and config.plugins.admin.twofa_enabled %}<span class="badge">2FA</span>{% endif %}</h4>
<h5>{{ admin.user.title|e }}</h5>
</div>
</a>
Expand Down

0 comments on commit 89a0b44

Please sign in to comment.