From a44734d8528b6d18252b74202872b254ca52cf0f Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 6 Jul 2014 16:47:11 +0200 Subject: Fix undefined password on channel creation --- webcastor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcastor.js b/webcastor.js index d1828fc..423927f 100644 --- a/webcastor.js +++ b/webcastor.js @@ -147,7 +147,7 @@ var Server = { }); app.post('/', function(req, res) { - var password = req.body.password; + var password = req.body.password !== undefined ? req.body.password : ''; var channelName = Channel.create(password); -- cgit v1.2.3