From a1c437bce825d90011750199fbcc0ca08ada51b3 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 30 Jan 2019 21:17:30 -0800 Subject: Do not show projects dropdown when prompting the 2FA code --- app/Controller/TwoFactorController.php | 1 + app/Template/twofactor/check.php | 21 +++++++++++++-------- 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->csrf() ?> - form->csrf() ?> - form->label(t('Code'), 'code') ?> - form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?> + form->label(t('Code'), 'code') ?> + form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?> -
- -
- +
+ +
+ +
\ No newline at end of file -- cgit v1.2.3