foo290 / Django-Verify-Email

A two-step verification for new accounts by verifying email.
GNU General Public License v3.0
104 stars 33 forks source link

Invalid Link #81

Open foliwe opened 10 months ago

foliwe commented 10 months ago

Email verification send an invalid link all the time

Invalid Link This link is invalid or been used already, we cannot verify using this link.

bvermeulen commented 4 months ago

Likely to do with Microsoft outlook safe-link feature, that sends a head request to check the link and thereby consumes the one time verification link. I have resolved this by adding the check if request.method == “HEAD”: return HttpResponse(“OK”) at the start of the function verify_user_and_activate. Otherwise add an else part to the existing if request.method == “GET”, return HttpResponse(“OK”).