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:
parent
597d98e1d7
commit
389eb99c10
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user