- fix: authenticate_withUser mancava su alcuni...

- fix: '/signin' non riproponeva il login nel caso il token fosse invalido
This commit is contained in:
Surya Paolo
2025-03-14 12:52:44 +01:00
parent aeb83a512b
commit 7d845355a9
5 changed files with 17 additions and 10 deletions

View File

@@ -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;