commit | c0f06bc8e382a0543a476f119989f7422a21add0 | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Fri Nov 12 14:45:51 2021 +0530 |
committer | GitHub <noreply@github.com> | Fri Nov 12 14:45:51 2021 +0530 |
tree | 269b8b757a77f80bf1d13ce5955491f9cf3ea97c | |
parent | 6d3e9bce5f6bcecd6f4eec555cbdffd8f1df62e3 [diff] |
fix: validate hmac unconditionally (#28372)
diff --git a/erpnext/erpnext_integrations/utils.py b/erpnext/erpnext_integrations/utils.py index b52c3fc..d922d87 100644 --- a/erpnext/erpnext_integrations/utils.py +++ b/erpnext/erpnext_integrations/utils.py
@@ -23,7 +23,6 @@ ) if frappe.request.data and \ - frappe.get_request_header(hmac_key) and \ not sig == bytes(frappe.get_request_header(hmac_key).encode()): frappe.throw(_("Unverified Webhook Data")) frappe.set_user(settings.modified_by)