Allow admins to disable the 2FA for a standard user

This commit is contained in:
Frederic Guillot
2015-04-21 19:53:33 -04:00
parent e30bf47d94
commit 71112eb81d
21 changed files with 80 additions and 0 deletions

View File

@@ -42,6 +42,10 @@
<li>
<?= $this->a(t('Two factor authentication'), 'twofactor', 'index', array('user_id' => $user['id'])) ?>
</li>
<?php elseif ($this->userSession->isAdmin() && $user['twofactor_activated'] == 1): ?>
<li>
<?= $this->a(t('Two factor authentication'), 'twofactor', 'disable', array('user_id' => $user['id'])) ?>
</li>
<?php endif ?>
<li>