Commit fbd66ebd authored by antoine masson's avatar antoine masson
Browse files

remove debug

parent 65a3009c
...@@ -177,7 +177,7 @@ exports.downCSV_survey_tokens = async (req,res)=>{ ...@@ -177,7 +177,7 @@ exports.downCSV_survey_tokens = async (req,res)=>{
// client // client
exports.loginToken = async (req, res) => { exports.loginToken = async (req, res) => {
// try { try {
const token = await Token.findOne({ token:req.body.token }); const token = await Token.findOne({ token:req.body.token });
const gopt = await GlobalOptions.findById(0,{poc:1}); const gopt = await GlobalOptions.findById(0,{poc:1});
...@@ -212,9 +212,9 @@ exports.loginToken = async (req, res) => { ...@@ -212,9 +212,9 @@ exports.loginToken = async (req, res) => {
} }
const authtoken = await token.generateAuthToken(); const authtoken = await token.generateAuthToken();
res.status(201).json({ token:authtoken, message : "Succeeded Login", status: "OK"}); res.status(201).json({ token:authtoken, message : "Succeeded Login", status: "OK"});
// } catch (err) { } catch (err) {
// res.status(400).json({ message: err,status:"Error"}); res.status(400).json({ message: err,status:"Error"});
// } }
}; };
exports.accessToken = async (req, res) => { exports.accessToken = async (req, res) => {
if(await Survey.isAccessToken(req.body.survey_id)){ if(await Survey.isAccessToken(req.body.survey_id)){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment