diff --git a/controllers/user.js b/controllers/user.js
index 0d06dc1..cec8f7b 100644
--- a/controllers/user.js
+++ b/controllers/user.js
@@ -206,13 +206,13 @@ exports.signup = async (req, res, next) =>
req.body.password=await bcrypt.hash(req.body.password, config.bcryptSaltRounds);
const user=await db["User"].create({ ...req.body }, { fields: ["name", "email", "password", "newsletterOk", "GodfatherId", "timeDifference"] });
req.body.UserId=user.id;
- // l'utilisateur a répondu à un quiz avant de créer son compte. On enregistre ses résultats.
+ // si l'utilisateur a répondu à un quiz avant de créer son compte, on enregistre son résultats.
if(req.body.QuestionnaireId)
{
await Promise.all([
db["QuestionnaireAccess"].create({ ...req.body }, { fields: ["QuestionnaireId", "UserId"] }),
db["Answer"].create({ ...req.body }, { fields: ["nbQuestions", "nbCorrectAnswers", "duration", "QuestionnaireId", "UserId"] })
- ]); // pas nécessaire ici de créer le cache, car normalement il sera créé lors du premier appel
+ ]); // pas nécessaire ici de créer le cache JSON, car il sera créé lors de la première connexion au compte.
}
await sendValidationLink(user);
res.status(201).json({ message: txt.mailValidationMessage });
@@ -257,7 +257,7 @@ exports.signupValidation = async (req, res, next) =>
EMAIL : config.senderEmail,
LINK_URL : config.siteUrl+"/"+configTpl.connectionPage
};
- const mailDatas=
+ const mailDatas =
{
mailSubject: txt.mailWelcomeSubject,
mailPreheader: txt.mailWelcomeSubject,
@@ -463,7 +463,6 @@ exports.checkLoginLink = async (req, res, next) =>
try
{
const db = require("../models/index");
- console.log(req);
const userDatas= await checkTokenUser(req.body.t);
if(userDatas.User.status!=="user")
res.status(403).json({ errors: [txtGeneral.notAllowed] });
@@ -540,7 +539,6 @@ exports.modify = async (req, res, next) =>
messageRetour.push(txt.updatedNeedUniqueEmail.replace("NEW_EMAIL", req.body.email));
else
newLogin.email=req.body.email;
- console.log(messageRetour);
}
}
if(req.body.newPassword)
diff --git a/front/public/validation.html b/front/public/validation.html
index fc25857..3f0a44f 100644
--- a/front/public/validation.html
+++ b/front/public/validation.html
@@ -30,7 +30,7 @@
Cultivons notre jardin !
-
+