X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Froutes%2Fusers.js;h=1d9b0423b4dde17c3ec093340f30107bea364248;hp=8df0c43e5829af1432355314cb98f3bdb16873e3;hb=f05815d7da84284bd9d7c1ce5b808acd675f2a3e;hpb=4edfed6c011cd97d58d5bd8e0451cc0c1006a0a0 diff --git a/server/routes/users.js b/server/routes/users.js index 8df0c43e..1d9b0423 100644 --- a/server/routes/users.js +++ b/server/routes/users.js @@ -21,7 +21,11 @@ function setAndSendLoginToken(subject, to, res) params.siteURL + "/authenticate?token=" + token + "\\n" + "Token will expire in " + params.token.expire/(1000*60) + " minutes." sendEmail(params.mail.noreply, to.email, subject, body, err => { - // "id" is generally the only info missing on client side, + + console.log("send login infos ::"); + console.log(to); + + // "id" is generally the only info missing on client side, // but the name is also unknown if log-in with the email. res.json(err || {id: to.id, name: to.name}); });