Allowing users to auto login

It's been a feature built in to ProofBuddy for a while, but one that's never really been documented.  By creating a link to your site with a special variable you can give your visitors the ability to login automatically without needing to know the passcode to an album.

Let's say you have an album with a passcode of 12345 and your ProofBuddy is setup in the /proofs/ folder on your server.  The following HTML will create a link allowing your visitor to view an album just by clicking.

<a href="/proofs/index.php?p=12345">View your album</a>

Notice the p=12345 after index.php.  That's where you'll enter the passcode. 

But nothing says you can only do text links.  You can also wrap an image in the link and have a photo linking into their album. And you can send these links to clients via email and give them a one-click method to get into their albums.

One note though.  Once your client is logged in, they'll still need to logout to see any other albums.  To ProofBuddy there is no difference in logging in this way or logging in by typing in a passcode. 

If you'd like to see this in action, we use this on our demo site.

Categories:Development Blog

Leave a Reply