1
0
forked from apxtri/apxtri

supprime token

This commit is contained in:
philc 2024-05-29 11:21:15 +02:00
parent 8c733d8bc0
commit 82da00caef

View File

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