From 82da00caef5b6050ffd245e79a979b9f5ae37538 Mon Sep 17 00:00:00 2001 From: philc Date: Wed, 29 May 2024 11:21:15 +0200 Subject: [PATCH] supprime token --- models/Pagans.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);