diff options
Diffstat (limited to 'server/middlewares/validators/remote.js')
-rw-r--r-- | server/middlewares/validators/remote.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/server/middlewares/validators/remote.js b/server/middlewares/validators/remote.js index c6455e678..858d193cc 100644 --- a/server/middlewares/validators/remote.js +++ b/server/middlewares/validators/remote.js | |||
@@ -4,20 +4,10 @@ const checkErrors = require('./utils').checkErrors | |||
4 | const logger = require('../../helpers/logger') | 4 | const logger = require('../../helpers/logger') |
5 | 5 | ||
6 | const validatorsRemote = { | 6 | const validatorsRemote = { |
7 | dataToDecrypt, | ||
8 | remoteVideos, | 7 | remoteVideos, |
9 | signature | 8 | signature |
10 | } | 9 | } |
11 | 10 | ||
12 | function dataToDecrypt (req, res, next) { | ||
13 | req.checkBody('key', 'Should have a key').notEmpty() | ||
14 | req.checkBody('data', 'Should have data').notEmpty() | ||
15 | |||
16 | logger.debug('Checking dataToDecrypt parameters', { parameters: { keyLength: req.body.key.length, bodyLength: req.body.data.length } }) | ||
17 | |||
18 | checkErrors(req, res, next) | ||
19 | } | ||
20 | |||
21 | function remoteVideos (req, res, next) { | 11 | function remoteVideos (req, res, next) { |
22 | req.checkBody('data').isEachRemoteVideosValid() | 12 | req.checkBody('data').isEachRemoteVideosValid() |
23 | 13 | ||