From 307e5ae500178cfbb96ebeb09b66cf39c8eb044e Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 1 Feb 2017 02:03:07 -0600 Subject: [PATCH] fix: mono theme panel headers black (#5705) Fixes issue where the librenms_logo_mono.svg is now loaded by making the background black to match the logo. Update twofactor.lib.php. Remove unused if statement --- html/css/mono.css | 10 ++++++++++ html/includes/authentication/twofactor.lib.php | 6 +++--- html/pages/logon.inc.php | 8 +------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/html/css/mono.css b/html/css/mono.css index b63f759059..f5fc4ad9be 100644 --- a/html/css/mono.css +++ b/html/css/mono.css @@ -22,6 +22,16 @@ color: black; } +.panel-default>.panel-heading { + background: black; + color: white; +} + +.panel-default>.panel-heading .icon-theme, +.panel-default>.panel-heading a:visited, +.panel-default>.panel-heading a:link { + color: white; +} .twitter-typeahead .tt-hint { border-color: #000 !important; diff --git a/html/includes/authentication/twofactor.lib.php b/html/includes/authentication/twofactor.lib.php index b4acdb2b05..6157a1162c 100644 --- a/html/includes/authentication/twofactor.lib.php +++ b/html/includes/authentication/twofactor.lib.php @@ -161,7 +161,7 @@ function verify_hotp($key, $otp, $counter = false) /** * Print TwoFactor Input-Form * @param boolean $form Include FORM-tags - * @return void|string + * @return string */ function twofactor_form($form = true) { @@ -174,7 +174,7 @@ function twofactor_form($form = true)

- +

@@ -189,7 +189,7 @@ function twofactor_form($form = true)
- +
'; diff --git a/html/pages/logon.inc.php b/html/pages/logon.inc.php index 63ba14ccab..843d71e513 100644 --- a/html/pages/logon.inc.php +++ b/html/pages/logon.inc.php @@ -8,13 +8,7 @@ if ($config['twofactor'] && isset($twofactorform)) {

- '; - } else { - echo ''; - } - ?> + '; ?>