@@ -140,8 +140,10 @@ class PasswordResetConfirmSerializer(serializers.Serializer):
defsave(self):
user=self.validated_data["user"]
ifnotuserornotself.validated_data["valid_token"]:
ifnotuser:
return
ifnotself.validated_data["valid_token"]:
raiseserializers.ValidationError({"token":"This password reset link has expired. Please generate a new one using the 'Forgot your password?' link on the Login page."})