Passing Passwords
winnjewett
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.
0
Comments
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...
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
Thanks!
Sigma 18-50 f/2.8, 70-200 f/2.8
Nikkor 55-200mm f/4-5.6, 50mm f/1.8
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.
SmugMug API Developer
My Photos