diff options
Diffstat (limited to 'includes/login.php')
-rw-r--r-- | includes/login.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/login.php b/includes/login.php index f374c31..06b7381 100644 --- a/includes/login.php +++ b/includes/login.php @@ -1,6 +1,7 @@ <?php - // Hide the login block if logged in or there are no lock usernames. - if (!isset($username) && $show_login == 'yes') { + // Hide the login block if logged in, there are no lock usernames, + // or if authenticated via HTTP. + if ($username == '' && $allow_login == 'yes' && !isset($_SERVER['PHP_AUTH_USER'])) { // Set the login table width if not set. if (!isset($login_width)) $login_width = "100%"; |