Commit 1d5d1e9f authored by Antoine Bernard's avatar Antoine Bernard
Browse files

[pw_reset] fix: 0379077f if *NOT* None

parent a49ed178
......@@ -180,7 +180,7 @@ class PasswordResetConfirmView(FormView):
# On vérifie le token avant de servir la page.
user = self.is_token_valid(request, uidb64, token)
if user is not None:
if user is None:
return redirect(reverse_lazy("password_reset:password_reset"))
# On vérifie la validité du formulaire
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment