ugh, where was 2fa integration gone?
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
1
2fa.php
1
2fa.php
@@ -77,6 +77,7 @@ if ($userinfo['type_2fa'] == '0') {
|
|||||||
2 => 'Authenticator'
|
2 => 'Authenticator'
|
||||||
);
|
);
|
||||||
asort($type_select_values);
|
asort($type_select_values);
|
||||||
|
$type_select = "";
|
||||||
foreach ($type_select_values as $_val => $_type) {
|
foreach ($type_select_values as $_val => $_type) {
|
||||||
$type_select .= \Froxlor\UI\HTML::makeoption($_type, $_val);
|
$type_select .= \Froxlor\UI\HTML::makeoption($_type, $_val);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -389,4 +389,6 @@ if ($page == 'overview') {
|
|||||||
require_once __DIR__ . '/api_keys.php';
|
require_once __DIR__ . '/api_keys.php';
|
||||||
} elseif ($page == 'apihelp' && Settings::Get('api.enabled') == 1) {
|
} elseif ($page == 'apihelp' && Settings::Get('api.enabled') == 1) {
|
||||||
require_once __DIR__ . '/apihelp.php';
|
require_once __DIR__ . '/apihelp.php';
|
||||||
|
} elseif ($page == '2fa' && Settings::Get('2fa.enabled') == 1) {
|
||||||
|
require_once __DIR__ . '/2fa.php';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -360,4 +360,6 @@ if ($page == 'overview') {
|
|||||||
require_once __DIR__ . '/api_keys.php';
|
require_once __DIR__ . '/api_keys.php';
|
||||||
} elseif ($page == 'apihelp' && Settings::Get('api.enabled') == 1) {
|
} elseif ($page == 'apihelp' && Settings::Get('api.enabled') == 1) {
|
||||||
require_once __DIR__ . '/apihelp.php';
|
require_once __DIR__ . '/apihelp.php';
|
||||||
|
} elseif ($page == '2fa' && Settings::Get('2fa.enabled') == 1) {
|
||||||
|
require_once __DIR__ . '/2fa.php';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user