Skip to content

Commit

Permalink
doi
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Nov 21, 2024
1 parent 61b63f0 commit b4ffb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions envergo/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def form_valid(self, form):
)
return self.form_invalid(form)

api_url = f"{settings.BREVO['API_URL']}contacts/"
api_url = f"{settings.BREVO['API_URL']}contacts/doubleOptinConfirmation"
headers = {
"Content-Type": "application/json",
"api-key": settings.BREVO["API_KEY"],
Expand All @@ -125,7 +125,7 @@ def form_valid(self, form):
"email": form.cleaned_data["email"],
"includeListIds": [
settings.BREVO["NEWSLETTER_LISTS"].get(
form.cleaned_data["email"],
form.cleaned_data["type"],
settings.BREVO["NEWSLETTER_LISTS"]["autre"],
)
],
Expand Down

0 comments on commit b4ffb2e

Please sign in to comment.