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
This commit is contained in:
Tony Murray
2017-02-01 02:03:07 -06:00
committed by Neil Lathwood
parent 5cdaee16f6
commit 307e5ae500
3 changed files with 14 additions and 10 deletions

View File

@@ -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)
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<img src="images/librenms_logo_light.svg">
<img src="' . $config['title_image'] . '">
</h3>
</div>
<div class="panel-body">
@@ -189,7 +189,7 @@ function twofactor_form($form = true)
</div>
<div class="form-group">
<div class="col-md-12">
<button type="submit" class="btn btn-default btn-block" name="submit" type="submit">Login</button>
<button type="submit" class="btn btn-default btn-block" name="submit">Login</button>
</div>
</div>
</div>';