added check for logon domain in autoconfig generation

This commit is contained in:
Paul Wilde 2021-08-10 21:41:15 +01:00
parent d139c1f2fc
commit 1e27206820
2 changed files with 4 additions and 0 deletions

View file

@ -8,6 +8,9 @@ if ($data["path"]) {
if ($email[0] == "emailaddress") { if ($email[0] == "emailaddress") {
$email = $email[1]; $email = $email[1];
$email_provided = true; $email_provided = true;
if (Core::$Config["LogonDomain"]) {
$email = str_ireplace(Core::$Config["Domain"],Core::$Config["LogonDomain"],$email);
}
} }
} }
?> ?>

View file

@ -3,6 +3,7 @@
; Set the base domain for use with this service ; Set the base domain for use with this service
Domain = example.com Domain = example.com
LogonDomain = example.local
; Admin User configuration ; Admin User configuration
; not in use yet ; not in use yet