public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
Update sogo-auth.php
initialize db before validating credentials
389eb99c
data/web/sogo-auth.php | 1 +
1 file changed, 1 insertion(+)
Diff
diff --git a/data/web/sogo-auth.php b/data/web/sogo-auth.php
index af6f851b..d1552710 100644
--- a/data/web/sogo-auth.php
+++ b/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'];