forked from apxtri/apxtri
supprime token
This commit is contained in:
parent
8c733d8bc0
commit
82da00caef
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user