diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-21 19:53:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-21 19:53:33 -0400 |
commit | 71112eb81d28b7baee09bf7d73e80a81cb38c17a (patch) | |
tree | 7bab960f33a2ed54a3976b800417ad0fb3bc5b33 /app/Template/twofactor | |
parent | e30bf47d94e84efe42c05148dddd6cec499d12ae (diff) |
Allow admins to disable the 2FA for a standard user
Diffstat (limited to 'app/Template/twofactor')
-rw-r--r-- | app/Template/twofactor/disable.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/Template/twofactor/disable.php b/app/Template/twofactor/disable.php new file mode 100644 index 00000000..6909b446 --- /dev/null +++ b/app/Template/twofactor/disable.php @@ -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>
\ No newline at end of file |