aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/secure.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/secure.js')
-rw-r--r--server/middlewares/secure.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/secure.js b/server/middlewares/secure.js
index b6e6d818b..7c5c72508 100644
--- a/server/middlewares/secure.js
+++ b/server/middlewares/secure.js
@@ -24,6 +24,8 @@ function checkSignature (req, res, next) {
24 logger.debug('Checking signature from %s.', host) 24 logger.debug('Checking signature from %s.', host)
25 25
26 let signatureShouldBe 26 let signatureShouldBe
27 // If there is data in the body the sender used it for its signature
28 // If there is no data we just use its host as signature
27 if (req.body.data) { 29 if (req.body.data) {
28 signatureShouldBe = req.body.data 30 signatureShouldBe = req.body.data
29 } else { 31 } else {