diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 18:02:03 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 18:02:03 +0100 |
commit | 4ff0d86208dafbdd07beb6286fd93c795db8a95f (patch) | |
tree | f24b12065afd2e9ec0c89f806961803dfcb678a8 /server/middlewares | |
parent | d396a937b642d616beb72dde54c0c2d37c7e8c30 (diff) | |
download | PeerTube-4ff0d86208dafbdd07beb6286fd93c795db8a95f.tar.gz PeerTube-4ff0d86208dafbdd07beb6286fd93c795db8a95f.tar.zst PeerTube-4ff0d86208dafbdd07beb6286fd93c795db8a95f.zip |
Server: little refractoring
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/secure.js | 4 |
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 | ||