diff --git a/app/routes/ApiRtes.js b/app/routes/ApiRtes.js index 8432a7c..723359c 100644 --- a/app/routes/ApiRtes.js +++ b/app/routes/ApiRtes.js @@ -243,7 +243,7 @@ api.get('/messs/:mess_id', reqAuth(), function (req, res) { // Une mess api.post('/messs', reqPerm('canAddMess'), function (req, res) { // Ajout d'un mess data = req.body; - data.login = req.session.login; + data.login = req.session.data.login; MessServ.add(data, function (err, mess) { if (err) res.status(500).send(err); -- libgit2 0.21.2