Commit 74d330756ca17add7248b83085dba522b005aee5

Authored by Geoffrey PREUD'HOMME
1 parent 18dc0c63

Sauvegarde du nom lors du post d'un message

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/routes/ApiRtes.js
... ... @@ -243,7 +243,7 @@ api.get('/messs/:mess_id', reqAuth(), function (req, res) { // Une mess
243 243  
244 244 api.post('/messs', reqPerm('canAddMess'), function (req, res) { // Ajout d'un mess
245 245 data = req.body;
246   - data.login = req.session.login;
  246 + data.login = req.session.data.login;
247 247 MessServ.add(data, function (err, mess) {
248 248 if (err)
249 249 res.status(500).send(err);
... ...