From 3cf7be9aaebd1657efd17fc36874d5341773a451 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?The=CC=81o=20DURR?=
Date: Thu, 5 Jan 2023 22:55:14 +0100
Subject: [PATCH] Fixed wrong HMAC signature generation
---
counter/models.py | 2 +-
eboutic/templates/eboutic/eboutic_makecommand.jinja | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/counter/models.py b/counter/models.py
index 4f6f25ea..61665e14 100644
--- a/counter/models.py
+++ b/counter/models.py
@@ -181,7 +181,7 @@ class BillingInfo(models.Model):
if self.address_2:
data["Address"]["Address2"] = self.address_2
xml = dict2xml(data, wrap="Billing", newlines=False)
- return '\n' + xml
+ return '' + xml
def __str__(self):
return f"{self.first_name} {self.last_name}"
diff --git a/eboutic/templates/eboutic/eboutic_makecommand.jinja b/eboutic/templates/eboutic/eboutic_makecommand.jinja
index eb2f6def..1f4016b0 100644
--- a/eboutic/templates/eboutic/eboutic_makecommand.jinja
+++ b/eboutic/templates/eboutic/eboutic_makecommand.jinja
@@ -102,8 +102,8 @@
{% endif %}
+ {% csrf_token %}