How to check if Site-Wide Password has been properly entered?

darryldarryl 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. :-{

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 15, 2008
    Darryl,

    You should be able to check for the existance of the cookie UP-{UserID}

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • darryldarryl Registered Users Posts: 997 Major grins
    edited February 19, 2008
    Thanks David. I ended up using this hack:

    if (YD.hasClass(document.body, "homepage") && !YD.hasClass(document.body, "passwordPage"))

    --Darryl
Sign In or Register to comment.