joshkoenig / pantheon-secure-login

Pantheon secure login (SSL for authenticated users)
GNU General Public License v2.0
3 stars 5 forks source link

gotpantheon.com and pantheon.io #8

Open gmclelland opened 9 years ago

gmclelland commented 9 years ago

I just tried using this module on a new Pantheon site and noticed that it redirects the site to sitename.gotpantheon.com domain instead of sitename.pantheon.io which causes a 404 error.

Maybe we should add an option to specify which one to use?

joshkoenig commented 9 years ago

Thanks for noticing this!

The module here is more of a proof-of-concept than anything else. Pull requests are welcome, but feel free to modify it for your own needs. :)

gmclelland commented 9 years ago

Thanks Josh,

In Pantheon, is there a $_SERVER or $_ENV superglobal key or any other way to detect if I site's is hosted on pantheon.io or gotpantheon.com? I didn't see one when I tried.

If not, I guess the best thing to do is to add an option to the form and allow the user to choose which domain the site is hosted on?