Changeset - r43:6fa32dfaf33c
[Not reviewed]
default
0 1 0
Wolfgang Scherer (ws) - 5 years ago 2020-04-06 13:46:13
wolfgang.scherer@gmx.de
index.php: send status 401 notifying browser to request new authorization data
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
index.php
Show inline comments
 
@@ -145,6 +145,13 @@ jQuery(document).ready(function(){
 
});
 
';
 

	
 
// Notify browser to request new login data
 
if (empty($user)) {
 
    http_response_code(401);
 
} else if (!$is_admin && !in_array($user, $user_names)) {
 
    http_response_code(401);
 
}
 

	
 
echo substitute_elements(
 
    $HEAD, Array(
 
        'title' => trim($title),
0 comments (0 inline, 0 general)