From 1e27206820937cbda025e4f60422b93c515a545b Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 10 Aug 2021 21:41:15 +0100 Subject: [PATCH] added check for logon domain in autoconfig generation --- src/public/autoconfig.php | 3 +++ src/sample-config/config.sample.ini | 1 + 2 files changed, 4 insertions(+) diff --git a/src/public/autoconfig.php b/src/public/autoconfig.php index dacf2aa..d727289 100644 --- a/src/public/autoconfig.php +++ b/src/public/autoconfig.php @@ -8,6 +8,9 @@ if ($data["path"]) { if ($email[0] == "emailaddress") { $email = $email[1]; $email_provided = true; + if (Core::$Config["LogonDomain"]) { + $email = str_ireplace(Core::$Config["Domain"],Core::$Config["LogonDomain"],$email); + } } } ?> diff --git a/src/sample-config/config.sample.ini b/src/sample-config/config.sample.ini index 8653f68..b89f781 100644 --- a/src/sample-config/config.sample.ini +++ b/src/sample-config/config.sample.ini @@ -3,6 +3,7 @@ ; Set the base domain for use with this service Domain = example.com +LogonDomain = example.local ; Admin User configuration ; not in use yet