Browse Source

Update sogo-auth.php

initialize db before validating credentials
Mirko Ceroni 2 years ago
parent
commit
c792f6c172
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data/web/sogo-auth.php

+ 1 - 0
data/web/sogo-auth.php

@@ -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'];