Django-Verify-Email icon indicating copy to clipboard operation
Django-Verify-Email copied to clipboard

Invalid Link

Open foliwe opened this issue 2 years ago • 1 comments

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.

foliwe avatar Dec 27 '23 17:12 foliwe

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”).

bvermeulen avatar Jun 17 '24 04:06 bvermeulen