send verify mail limit to 2min

This commit is contained in:
HF 2020-01-13 05:37:12 +01:00
parent 4b8bbf2716
commit 2820805f35

View File

@ -40,7 +40,7 @@ class MailProvider {
const pastMail = this.verifyCodes[to];
if (pastMail) {
const minLeft = Math.floor(
pastMail.timestamp / MINUTE + 15 - Date.now() / MINUTE,
pastMail.timestamp / MINUTE + 2 - Date.now() / MINUTE,
);
if (minLeft > 0) {
logger.info(