The request is completely handled by the django-allauth package which is supposed to detect the token, save it to the session, redirect to the 'change your password' page, and finally load the token from the session.
The password reset function does not work when clicking the link from the email (Bad Token), but if I copy-paste the link into the url bar or click the href in Inspect Element mode it DOES work.
Note: It also works if
When you click the link from your email you make it all the way to the 'change your password' page but you get a "Bad Token" error as no Token was found in the session.
<a href="https://subdomain.url.com/ls/click?upn=DEcd6nIgEEAvb4Zt..." rel="noreferrer" safedirecturl="https://www.google.com/url?q=https://sudomain.url.com/...">link text</a>
For clarification, both the href and the safedirecturl work fine if I copy-paste it into the url bar
So far, these are my only guesses at the cause of the issue:
I would greatly appreciate any input as I'm a bit stumped at this point
Since in my django settings I had SESSION_COOKIE_SECURE = True
, I had to change SESSION_COOKIE_SAMESITE = 'Strict'
to SESSION_COOKIE_SAMESITE = 'Lax'