aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/secure.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/middlewares/secure.js b/server/middlewares/secure.js
index b7b4cdfb4..2aae715c4 100644
--- a/server/middlewares/secure.js
+++ b/server/middlewares/secure.js
@@ -26,6 +26,10 @@ function checkSignature (req, res, next) {
26 const signatureOk = peertubeCrypto.checkSignature(pod.publicKey, host, req.body.signature.signature) 26 const signatureOk = peertubeCrypto.checkSignature(pod.publicKey, host, req.body.signature.signature)
27 27
28 if (signatureOk === true) { 28 if (signatureOk === true) {
29 res.locals.secure = {
30 pod
31 }
32
29 return next() 33 return next()
30 } 34 }
31 35