Node.js based forum software built for the modern web
fix: email expiry timestamps
Barış Soner Uşaklıe335d0f6016c
diff --git a/src/user/email.js b/src/user/email.jsindex c6fc3274d4..9b51b43ddd 100644--- a/src/user/email.js+++ b/src/user/email.js@@ -134,13 +134,13 @@ UserEmail.sendValidationEmail = async function (uid, options) {await UserEmail.expireValidation(uid);await db.set(`confirm:byUid:${uid}`, confirm_code);- await db.pexpire(`confirm:byUid:${uid}`, emailConfirmExpiry * 24 * 60 * 60 * 1000);+ await db.pexpire(`confirm:byUid:${uid}`, emailConfirmExpiry * 60 * 60 * 1000);await db.setObject(`confirm:${confirm_code}`, {email: options.email.toLowerCase(),uid: uid,});- await db.pexpire(`confirm:${confirm_code}`, emailConfirmExpiry * 24 * 60 * 60 * 1000);+ await db.pexpire(`confirm:${confirm_code}`, emailConfirmExpiry * 60 * 60 * 1000);winston.verbose(`[user/email] Validation email for uid ${uid} sent to ${options.email}`);events.log({