aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/pods.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/middlewares/validators/pods.js b/server/middlewares/validators/pods.js
index b9b30e7a1..0bf4b1844 100644
--- a/server/middlewares/validators/pods.js
+++ b/server/middlewares/validators/pods.js
@@ -40,7 +40,8 @@ function makeFriends (req, res, next) {
40} 40}
41 41
42function podsAdd (req, res, next) { 42function podsAdd (req, res, next) {
43 req.checkBody('host', 'Should have an host').isHostValid() 43 req.checkBody('host', 'Should have a host').isHostValid()
44 req.checkBody('email', 'Should have an email').isEmail()
44 req.checkBody('publicKey', 'Should have a public key').notEmpty() 45 req.checkBody('publicKey', 'Should have a public key').notEmpty()
45 logger.debug('Checking podsAdd parameters', { parameters: req.body }) 46 logger.debug('Checking podsAdd parameters', { parameters: req.body })
46 47