Dynamically hide login.html using Environment constant
0
Hello, The title says it all. We would like to have the login.html page available in TEST and ACCP environments because this allows the user to login using username + password, but in PROD we would like to hide this page so the user is redirected to /SSO/. I've already thought of editing the login.html in order to detect if it's the PROD url and then instantly redirect to /SSO/, but then we would not be able to use MxAdmin anymore. My question lies on if there is any possiblity to dynamically hide/make unavailable the login.html page based on an environment constant. Thanks in advance
asked
Vasco Centeno
3 answers
1
Hi, you can copy the login.html page and rename it to something else to still be able to use it as admin and redirect login to the sso url.
answered
Joni Van Autreve
0
To take a different approach have a look at this module
answered
Martin Koelewijn
0
You can create a copy of the same login.html file and then edit the login.html file to have only one option to go-through the /SSO. You can use the copy version of the login.html to have the manual login fields.