2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Merge pull request #2999 from matmair/fix-todos

Fix Todo texts
This commit is contained in:
Oliver
2022-05-16 09:16:34 +10:00
committed by GitHub
8 changed files with 20 additions and 40 deletions

View File

@ -1802,10 +1802,8 @@ class WebhookEndpoint(models.Model):
def process_webhook(self):
if self.token:
self.verify = VerificationMethod.TOKEN
# TODO make a object-setting
if self.secret:
self.verify = VerificationMethod.HMAC
# TODO make a object-setting
return True
def validate_token(self, payload, headers, request):