diff --git a/models/Pagans.js b/models/Pagans.js index f26f76d..177f914 100644 --- a/models/Pagans.js +++ b/models/Pagans.js @@ -32,7 +32,7 @@ const Pagans = {}; Pagans.logout = (alias, tribe, xdays, xhash) => { //console.log(alias, tribe, xdays, xhash); // inline with middleware isAuthenticated.js - let tmpfs = `../tmp/tokens/${alias}_${tribe}_${xdays}`; + let tmpfs = `../../tmp/tokens/${alias}_${tribe}_${xdays}`; //max filename in ext4: 255 characters tmpfs += `_${xhash.substring(150, 150 + tmpfs.length - 249)}.json`; fs.remove(tmpfs);