summaryrefslogtreecommitdiff
path: root/app/Template/twofactor/index.php
blob: 1ed414ed63987b3c54390facd0b2d079a0af2162 (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('TwoFactorController', $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): ?>
            <button type="submit" class="btn btn-red"><?= t('Disable two-factor authentication') ?></button>
        <?php else: ?>
            <button type="submit" class="btn btn-blue"><?= t('Enable two-factor authentication') ?></button>
        <?php endif ?>
    </div>
</form>