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

@@ -0,0 +1,14 @@
<div class="page-header">
<h2><?= t('Disable two factor authentication') ?></h2>
</div>
<div class="confirm">
<p class="alert alert-info">
<?= t('Do you really want to disable the two factor authentication for this user: "%s"?', $user['name'] ?: $user['username']) ?>
</p>
<div class="form-actions">
<?= $this->a(t('Yes'), 'twofactor', 'disable', array('user_id' => $user['id'], 'disable' => 'yes'), true, 'btn btn-red') ?>
<?= t('or') ?> <?= $this->a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
</div>
</div>