- fixed server versioni precedenti (getEnableTokenExpiredByIdApp dava errore perchè confpages non esiste nelle vecchie versioni ...)
This commit is contained in:
@@ -96,6 +96,9 @@ const authenticate_noerror = (req, res, next) => {
|
||||
req.token = null;
|
||||
req.access = null;
|
||||
req.code = 0;
|
||||
|
||||
// Continua comunque !
|
||||
next();
|
||||
});
|
||||
} catch (e) {
|
||||
console.error('Err', e);
|
||||
|
||||
@@ -1394,6 +1394,7 @@ router.get('/loadsite/:userId/:idapp/:vers', authenticate_noerror,
|
||||
});
|
||||
|
||||
function load(req, res, version) {
|
||||
|
||||
const userId = req.params.userId;
|
||||
const idapp = req.params.idapp;
|
||||
|
||||
|
||||
@@ -1700,7 +1700,7 @@ module.exports = {
|
||||
getEnableTokenExpiredByIdApp: function (idapp) {
|
||||
|
||||
const myapp = this.MYAPPS.find(item => item.idapp === idapp);
|
||||
if (myapp) {
|
||||
if (myapp && myapp.confpages && myapp.confpages.hasOwnProperty('enableTokenExpired')) {
|
||||
return myapp.confpages.enableTokenExpired;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user