From 74d330756ca17add7248b83085dba522b005aee5 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 13 Apr 2015 16:54:45 +0200 Subject: [PATCH] Sauvegarde du nom lors du post d'un message --- app/routes/ApiRtes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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