Re:Hey developers, stop forcing me to login to unsubscribe
by adrr on Sunday November 10, 2013 @12:44AM
(#6705419)
We do the same and just got our first request to unsubscribe from our receipt emails since we don't provide an unsubscribe link on it. Waiting for our first person to complain about our reset password email, have a feeling its coming soon.
Re:Hey developers, stop forcing me to login to unsubscribe
by mmahemoff on Saturday November 09, 2013 @09:05PM
(#6704750)
I'd be interested if you have details on handling single-click login as securely as possible.
Re:Hey developers, stop forcing me to login to unsubscribe
by bryanh on Saturday November 09, 2013 @09:12PM
(#6704782)
Sure!
Basically, reuse a lot of signing functions that you might find in a library (IE: Django's https://docs.djangoproject.com/en/dev/topics/signing/), don't roll your own. Then, keep track of last login IP address and block auto-logins when they mismatch. Then, set a max age for the login links to work (for example, 24 hours). There are a few other things we do as well, but those are the major ones.
Those three combined are fairly secure.
Re:Hey developers, stop forcing me to login to unsubscribe
by mmahemoff on Saturday November 09, 2013 @09:26PM
(#6704832)
Thanks. You said "last login IP". If it's a single IP, I guess you're talking about transactional mails the user has triggered. If it was marketing mails, you'd surely want to compare against a list of recent IPs, not just the very last, wouldn't you?
We have a lot of other cool stuff in emails like single click logins, viewing pixels with custom payloads, our open source drip campaign mailer for Django, and much more. If there is any interest, I'd be happy to go into deeper detail.