modif recovery email

This commit is contained in:
2024-04-15 09:26:54 +02:00
parent 16a93f2d33
commit 9bf76a17dc
2 changed files with 35 additions and 19 deletions

View File

@@ -52,9 +52,7 @@ const isAuthenticated = async (req, res, next) => {
glob.sync(`../../tmp/tokens/*.json`).forEach((f) => {
const fsplit = f.split("_");
const elapse = tsday - parseInt(fsplit[2]);
console.log("##############################")
console.log(fsplit,"--",fsplit[2])
//24h 86400000 milliseconde 15mn 900000
//24h 86400000 milliseconde 15mn 900000
if (elapse && elapse > 86400000) {
fs.remove(f);
}