Hi, I'm Jess. I use Python to craft web apps and sift data. I'm honing my full-stack development chops on Author Alcove.
So why unsubscribe link is valid for 2 days only?
If the email is made public, people or bots who click on the link would be able to unsubscribe the original person who received the email. So by saying that it is only valid for two days, it should give the person who received the email time to do the one click unsubscribe while preventing some of the problems if the email is made public. You can adjust the window up or down as needed, or remove it completely depending on your application.
– except BadSignature, SignatureExpired:
+ except (BadSignature, SignatureExpired):
the top catches a BadSignature and saves it to a variable named SignatureExpired
Notify me of follow-up comments by email.
Notify me of new posts by email.
Browse the article archives.
You can have new articles delivered to your inbox.
© 2007-2015 GrokCode