1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-10 04:18:10 +02:00

Update sogo-auth.php

initialize db before validating credentials
This commit is contained in:
Mirko Ceroni 2023-09-01 20:06:03 +02:00 committed by DerLinkman
parent 597d98e1d7
commit 389eb99c10
No known key found for this signature in database
GPG Key ID: F109FD97469550A2

View File

@ -11,6 +11,7 @@ $session_var_pass = 'sogo-sso-pass';
// 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'];