There is another, albeit similar method to use. Certainly following what has been said earlier about how you want your code to look… Following that, I did not want my code to outright give away the passwords (like the above methods) and I did not want to resort to some OAUTH login either.
So here is my solution, it uses a similar JS login, but only looks for hype Scenes, if it does not find them, it goes to a Denied page, which lets you log in again. Many of you will recognize the hype linking to scene functions Linking to specific scenes
Looking at the code, a crafty person will also see that the “passwords” are in fact in plain site, just not where one would expect them to be… here is the hint, look at the div names.
Ok, here is the site, I coded this almost entirely in hype for a work project.
I would love to hear what folks here think.