summaryrefslogtreecommitdiff
path: root/app/Template/twofactor/index.php
blob: 6e70127309a72bd3d271b5f0e47bf4852da2d81f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="page-header">
    <h2><?= t('Two factor authentication') ?></h2>
</div>

<form method="post" action="<?= $this->url->href('twofactor', $user['twofactor_activated'] == 1 ? 'deactivate' : 'show', array('user_id' => $user['id'])) ?>" autocomplete="off">
    <?= $this->form->csrf() ?>
    <p><?= t('Two-Factor Provider: ') ?><strong><?= $this->text->e($provider) ?></strong></p>
    <div class="form-actions">
        <?php if ($user['twofactor_activated'] == 1): ?>
            <input type="submit" value="<?= t('Disable two-factor authentication') ?>" class="btn btn-red"/>
        <?php else: ?>
            <input type="submit" value="<?= t('Enable two-factor authentication') ?>" class="btn btn-blue"/>
        <?php endif ?>
    </div>
</form>