Skip to content
Snippets Groups Projects
Verified Commit 6aff4fde authored by Helmo's avatar Helmo
Browse files

Allow overriding the interface_base_url for password reset mails, #6580

parent eccdad35
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,7 @@ $conf['timezone'] = '{timezone}'; ...@@ -158,6 +158,7 @@ $conf['timezone'] = '{timezone}';
//** Misc. //** Misc.
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/ $conf['interface_logout_url'] = ''; // example: http://www.domain.tld/
$conf['interface_base_url'] = ''; // example: http://www.domain.tld (no trailing slash)
//** Auto Load Modules //** Auto Load Modules
......
...@@ -84,6 +84,9 @@ if(isset($_POST['username']) && is_string($_POST['username']) && $_POST['usernam ...@@ -84,6 +84,9 @@ if(isset($_POST['username']) && is_string($_POST['username']) && $_POST['usernam
else $server_domain = 'https://' . $server_domain; else $server_domain = 'https://' . $server_domain;
if(isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '443') $server_domain .= ':' . $_SERVER['SERVER_PORT']; if(isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '443') $server_domain .= ':' . $_SERVER['SERVER_PORT'];
if (!empty($conf['interface_base_url'])) {
$server_domain = $conf['interface_base_url'];
}
$app->uses('getconf,ispcmail'); $app->uses('getconf,ispcmail');
$server_config_array = $app->getconf->get_global_config(); $server_config_array = $app->getconf->get_global_config();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment