- fix: authenticate_withUser mancava su alcuni...
- fix: '/signin' non riproponeva il login nel caso il token fosse invalido
This commit is contained in:
@@ -861,7 +861,7 @@ router.post('/groups', authenticate, (req, res) => {
|
||||
|
||||
});
|
||||
|
||||
router.post('/circuits', authenticate, (req, res) => {
|
||||
router.post('/circuits', authenticate_withUser, (req, res) => {
|
||||
const username = req.user.username;
|
||||
idapp = req.body.idapp;
|
||||
locale = req.body.locale;
|
||||
@@ -1800,7 +1800,7 @@ router.post('/infomap', authenticate, async (req, res) => {
|
||||
|
||||
});
|
||||
|
||||
router.post('/mgt', authenticate, async (req, res) => {
|
||||
router.post('/mgt', authenticate_withUser, async (req, res) => {
|
||||
|
||||
const mydata = req.body.mydata;
|
||||
idapp = req.body.idapp;
|
||||
|
||||
Reference in New Issue
Block a user