Browse Source

Remove password check.

Lee Morgan 5 năm trước cách đây
mục cha
commit
0b344b726b
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      controllers/admin.js

+ 0 - 3
controllers/admin.js

@@ -18,13 +18,10 @@ module.exports = {
     }
     */
     addData: function(req, res){
-        if(req.body.password !== process.env.ADMIN_PASS) return res.json("bad password");
-
         Merchant.findOne({_id: req.session.merchant})
             .populate("inventory.ingredient")
             .populate("recipes")
             .then((merchant)=>{
-                // console.log(merchant);
                 //Ingredients
                 let newIngredients = [];
                 let ingredientData = {};