Commit ce57c77f authored by pdg16's avatar pdg16
Browse files

change validateToken to POST

parent 4fbd30e5
Pipeline #21811 failed with stage
in 1 minute and 44 seconds
......@@ -38,7 +38,7 @@ const ObjectId = mongoose.Types.ObjectId;
const checkOrigin = require(`${libs}/middlewares/authOrigin`);
validateToken.get('/', passport.authenticate('bearer', { session: false }), checkOrigin, (req, res) => {
validateToken.post('/', passport.authenticate('bearer', { session: false }), checkOrigin, (req, res) => {
return res.json({access: "Authorized", name: req.user.name, email: req.user.email, userId: req.user._id, origin: req.user.origin, adminSimcaqNode: req.user.adminSimcaqNode, adminLDE: req.user.adminLDE });
});
......
Markdown is supported
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