How to check if Site-Wide Password has been properly entered?
darryl
Registered Users Posts: 997 Major grins
I believe my Recent Galleries hack is screwing up the site-wide password login page, and for whatever reason w/ the new SmugMug increased security in place, it's throwing a red flag up somewhere and people get kicked to the SmugMug home page.
To see what I'm talking about, please go to:
http://ccns.smugmug.com/
Anyways, I'm looking for a way in JavaScript to check to see if a user has successfully logged in with the site-wide password before running my hack (which grabs the RSS feed and then tries to do some JavaScript hackery to replace Featured Galleries with Recent Galleries.)
Thanks -- would like to get this fixed ASAP as it is messing things up for all of the parents in my son's preschool. :-{
To see what I'm talking about, please go to:
http://ccns.smugmug.com/
Anyways, I'm looking for a way in JavaScript to check to see if a user has successfully logged in with the site-wide password before running my hack (which grabs the RSS feed and then tries to do some JavaScript hackery to replace Featured Galleries with Recent Galleries.)
Thanks -- would like to get this fixed ASAP as it is messing things up for all of the parents in my son's preschool. :-{
0
Comments
You should be able to check for the existance of the cookie UP-{UserID}
Cheers,
David
SmugMug API Developer
My Photos
if (YD.hasClass(document.body, "homepage") && !YD.hasClass(document.body, "passwordPage"))
--Darryl