So I did not really like having to login with user@domain or even domain in the separate box so I modified the login page as such for use with multi tenant and it should work with single tenant also. I also did not want to populate the drop down with all the URLs and manually at that
I did not want each client to see other's URLs. I also feel this provides more security as I edited under domains, I took the domain of my server IP and changed it to the domain of for example say voip.mypbxserverdomain.com so no one can login at the IP address for management but only that domain and no other subdomain, so this being said, I believe it provides another level of security since no one can login cross domain already.

The way it works is that it pulls the domain from the URL of the browser and embeds it into the hidden domain box which I hid. I give a business a URL such as theircompany.mypbxserverdomain.com and as such I installed a wildcard SSL as well. I just add the subdomain entry into my DNS server for pointing etc.
Just set domain_name_visible=TRUE under default settings.
Then modify login.php located at /var/www/fusionpbx/resources/login.php using WinSCP etc
as follows below around line 103
else {
### Edited by Edward Soares of Front Range Geeks LLC - Button Belongs below domain box but was moved above to fix spacing due to being hidden. Changed value=\"".$_SERVER['HTTP_HOST']."\" for domain box text and hidden=true to autofill domain based on url.
echo "<input type='submit' id='btn_login' class='btn' style='width: 100px; margin-top: 15px;' value='".$text['button-login']."'>\n";
echo "<input type='text' name='domain_name' class='txt login' style='text-align: center; min-width: 200px; width: 200px; margin-bottom: 8px;' hidden=true value=\"".$_SERVER['HTTP_HOST']."\" placeholder=\"".$text['label-domain']."\"><br />\n";
}
Seems more elegant to me anyway. Input is appreciated good or bad.


The way it works is that it pulls the domain from the URL of the browser and embeds it into the hidden domain box which I hid. I give a business a URL such as theircompany.mypbxserverdomain.com and as such I installed a wildcard SSL as well. I just add the subdomain entry into my DNS server for pointing etc.
Just set domain_name_visible=TRUE under default settings.
Then modify login.php located at /var/www/fusionpbx/resources/login.php using WinSCP etc
as follows below around line 103
else {
### Edited by Edward Soares of Front Range Geeks LLC - Button Belongs below domain box but was moved above to fix spacing due to being hidden. Changed value=\"".$_SERVER['HTTP_HOST']."\" for domain box text and hidden=true to autofill domain based on url.
echo "<input type='submit' id='btn_login' class='btn' style='width: 100px; margin-top: 15px;' value='".$text['button-login']."'>\n";
echo "<input type='text' name='domain_name' class='txt login' style='text-align: center; min-width: 200px; width: 200px; margin-bottom: 8px;' hidden=true value=\"".$_SERVER['HTTP_HOST']."\" placeholder=\"".$text['label-domain']."\"><br />\n";
}
Seems more elegant to me anyway. Input is appreciated good or bad.
Last edited: