diff --git a/routes/acl.js b/routes/acl.js index 4f7e860..1b970ec 100644 --- a/routes/acl.js +++ b/routes/acl.js @@ -26,7 +26,6 @@ router.get('/add', async (req, res) => { // Render form to add new ACL entry doorList[col.Field] = false; } }); - console.log(doorList) res.render('acl-add', { user: req.session.user, doorList }); }).catch(err => { @@ -38,7 +37,6 @@ router.get('/add', async (req, res) => { // Render form to add new ACL entry router.put('/', async (req, res) => { // Attempt to create new ACL entry. Fail if cardNumber already exists const data = req.body; const cardNumber = new Number(data.CardNumber); - console.log(data) if (isNaN(cardNumber) || cardNumber <= 0) { return res.status(400).json({ error: 'Invalid card number' }); } diff --git a/views/acl-add.ejs b/views/acl-add.ejs index ef03d3f..0b7b816 100644 --- a/views/acl-add.ejs +++ b/views/acl-add.ejs @@ -130,7 +130,6 @@ headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }).then(res => { - console.log(res.status, res.statusText); if (res.ok) window.location.href = '/acl'; else alert('Failed to update ACL entry'); }).catch(err => { diff --git a/views/acl-bulk-add.ejs b/views/acl-bulk-add.ejs index ef03d3f..0b7b816 100644 --- a/views/acl-bulk-add.ejs +++ b/views/acl-bulk-add.ejs @@ -130,7 +130,6 @@ headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }).then(res => { - console.log(res.status, res.statusText); if (res.ok) window.location.href = '/acl'; else alert('Failed to update ACL entry'); }).catch(err => { diff --git a/views/acl-edit.ejs b/views/acl-edit.ejs index fab7e13..67142be 100644 --- a/views/acl-edit.ejs +++ b/views/acl-edit.ejs @@ -130,7 +130,6 @@ headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }).then(res => { - console.log(res.status, res.statusText); if (res.ok) window.location.href = '/acl'; else alert('Failed to update ACL entry'); }).catch(err => {