reset password wip

This commit is contained in:
noot
2024-01-30 16:53:42 +08:00
parent e0b64b2252
commit 12597ad774
3 changed files with 28 additions and 27 deletions

View File

@@ -51,7 +51,7 @@ async function addToken(userId, permission, isKey ,expiry) {
}
async function addPasswordResetToken(data , token){
let hashtoken = await hash(uuid);
let hashtoken = await hash(token);
let currentDate = new Date();
let tokenToLive = new Date(currentDate.getTime() + 15 * 60000);