summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-01-30 21:17:30 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-01-30 21:17:30 -0800
commita1c437bce825d90011750199fbcc0ca08ada51b3 (patch)
tree7fcdde99272ec61a9f3ea51118042b4f4575e197
parent322383b0847426cb92533528a784471b94193a3b (diff)
Do not show projects dropdown when prompting the 2FA code
-rw-r--r--app/Controller/TwoFactorController.php1
-rw-r--r--app/Template/twofactor/check.php21
2 files changed, 14 insertions, 8 deletions
diff --git a/app/Controller/TwoFactorController.php b/app/Controller/TwoFactorController.php
index 2038c269..473838ef 100644
--- a/app/Controller/TwoFactorController.php
+++ b/app/Controller/TwoFactorController.php
@@ -177,6 +177,7 @@ class TwoFactorController extends UserViewController
$this->response->html($this->helper->layout->app('twofactor/check', array(
'title' => t('Check two factor authentication code'),
+ 'no_layout' => true,
)));
}
diff --git a/app/Template/twofactor/check.php b/app/Template/twofactor/check.php
index 06801d50..2c0de97c 100644
--- a/app/Template/twofactor/check.php
+++ b/app/Template/twofactor/check.php
@@ -1,10 +1,15 @@
-<form method="post" action="<?= $this->url->href('TwoFactorController', 'check', array('user_id' => $this->user->getId())) ?>" autocomplete="off">
+<section class="page">
+ <div class="page-header">
+ <h2><?= t('Two factor authentication') ?></h2>
+ </div>
+ <form method="post" action="<?= $this->url->href('TwoFactorController', 'check', array('user_id' => $this->user->getId())) ?>" autocomplete="off">
+ <?= $this->form->csrf() ?>
- <?= $this->form->csrf() ?>
- <?= $this->form->label(t('Code'), 'code') ?>
- <?= $this->form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?>
+ <?= $this->form->label(t('Code'), 'code') ?>
+ <?= $this->form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?>
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Check my code') ?></button>
- </div>
-</form>
+ <div class="form-actions">
+ <button type="submit" class="btn btn-blue"><?= t('Check my code') ?></button>
+ </div>
+ </form>
+</section> \ No newline at end of file