Skip to content

Commit

Permalink
Update sogo-auth.php
Browse files Browse the repository at this point in the history
initialize db before validating credentials
  • Loading branch information
cero1988 authored and DerLinkman committed Feb 8, 2024
1 parent 597d98e commit 389eb99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/web/sogo-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// validate credentials for basic auth requests
if (isset($_SERVER['PHP_AUTH_USER'])) {
// load prerequisites only when required
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.auth.inc.php';
$username = $_SERVER['PHP_AUTH_USER'];
Expand Down

0 comments on commit 389eb99

Please sign in to comment.