Passing Passwords

winnjewettwinnjewett Registered Users Posts: 329 Major grins
Is there any way to pass along the password to a gallery via post or get? I would like to build a more sophisticated login system for my clients that checks the password before passing them over to smugmug. That way, I can send them an automated email with the password if they forget what it is.

Comments

  • photokandyphotokandy Registered Users Posts: 269 Major grins
    edited September 3, 2009
    winnjewett wrote:
    Is there any way to pass along the password to a gallery via post or get? I would like to build a more sophisticated login system for my clients that checks the password before passing them over to smugmug. That way, I can send them an automated email with the password if they forget what it is.

    Hmmm. I'm not sure you can do that... Looking at the source code reveals some hidden values that have to get passed along correctly, and one of them is called "formToken" and has some hex numbers in it, which, if I'm not mistaken, are something of an authorization token -- ensuring that only SM can log the user in to the gallery, and not some other site.

    I could be wrong on that one -- in which case, it should be possible - but you'll have to replicate the login form on your site and link straight to the gallery in question (which seems to be done via the hidden parameters). But that formToken is worrisome... it is possible it is only gallery specific, but I suspect it is more than that.

    If you need them to be able to get an email, you could put a link in your footer or header (and maybe even control its visibility so that it shows only on a login page), that would transfer them to your site where you could do whatever code was necessary to email them the password. Not the best way, but should be doable...
    ~ Kerri, photoKandy Studios ( Facebook | Twitter )

    Need customization services? View our packages or see our templates.

    Note: I won't be offended if you edit my photo and repost it on dgrin -- I'm always open to new interpretations
    and ideas, and any helpful hints, tips, and/or critiques are welcome. Just don't post the edit anywhere else
    but dgrin, please.

    My Gear List
  • bandgeekndbbandgeekndb Registered Users Posts: 284 Major grins
    edited September 8, 2009
    Can we get an official HERO answer to this please? I too would like to build a more advanced login system, whether it be on a separate site, or via Smugmug, but an answer here will be a good starting point for my designing.

    Thanks!
    Nikon D7000, D90

    Sigma 18-50 f/2.8, 70-200 f/2.8
    Nikkor 55-200mm f/4-5.6, 50mm f/1.8
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 8, 2009
    If you want to do more advanced stuff, that's what the api is for.

    Typically a cookie is required on the client machine to access a passworded gallery. If you want to pass them off from your external site to a SmugMug gallery without having to enter a password. The best method would be to have a page on your external site that makes a client side to an api method like smugmug.albums.getInfo....this would set the cookie on the client machine and you could then redirect them to the SmugMug gallery.
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.