From 5fa0f4b87e41075c1da9f6b4715354f635250a6b Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Fri, 21 Dec 2018 19:25:06 +0100 Subject: [PATCH] ugh, where was 2fa integration gone? Signed-off-by: Michael Kaufmann --- 2fa.php | 1 + admin_index.php | 2 ++ customer_index.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/2fa.php b/2fa.php index e6a2e56f..d843daf8 100644 --- a/2fa.php +++ b/2fa.php @@ -77,6 +77,7 @@ if ($userinfo['type_2fa'] == '0') { 2 => 'Authenticator' ); asort($type_select_values); + $type_select = ""; foreach ($type_select_values as $_val => $_type) { $type_select .= \Froxlor\UI\HTML::makeoption($_type, $_val); } diff --git a/admin_index.php b/admin_index.php index c37fe039..6bc7dfb3 100644 --- a/admin_index.php +++ b/admin_index.php @@ -389,4 +389,6 @@ if ($page == 'overview') { require_once __DIR__ . '/api_keys.php'; } elseif ($page == 'apihelp' && Settings::Get('api.enabled') == 1) { require_once __DIR__ . '/apihelp.php'; +} elseif ($page == '2fa' && Settings::Get('2fa.enabled') == 1) { + require_once __DIR__ . '/2fa.php'; } diff --git a/customer_index.php b/customer_index.php index 4eaa87ac..25ea15b2 100644 --- a/customer_index.php +++ b/customer_index.php @@ -360,4 +360,6 @@ if ($page == 'overview') { require_once __DIR__ . '/api_keys.php'; } elseif ($page == 'apihelp' && Settings::Get('api.enabled') == 1) { require_once __DIR__ . '/apihelp.php'; +} elseif ($page == '2fa' && Settings::Get('2fa.enabled') == 1) { + require_once __DIR__ . '/2fa.php'; }