mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Show "Logout" only if (a) password is set and (b) user has successfully logged in.
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<!-- Logout -->
|
||||
<?php if(strlen($webpw) > 0) { ?>
|
||||
<?php if(strlen($webpw) > 0 && $auth) { ?>
|
||||
<li>
|
||||
<a href="index.php">
|
||||
<i class="fa fa-user-times"></i> <span>Logout</span>
|
||||
|
||||
Reference in New Issue
Block a user