From ce35fd35cda7c5ddd5cd08339a3969bc0e7b3198 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 27 Jul 2021 16:37:46 +0200 Subject: [PATCH] Add new constant MDRequirementsSet::MAX_AGE_AFTER_USER_INVITE to streamline max age of unvalidated accounts before automatic deletion --- src/MDRequirementsSet.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MDRequirementsSet.php b/src/MDRequirementsSet.php index 5d39e3a..2965880 100644 --- a/src/MDRequirementsSet.php +++ b/src/MDRequirementsSet.php @@ -11,6 +11,12 @@ declare(strict_types = 1); */ final class MDRequirementsSet { + // Newly created user account invites need to be accepted within + // the given timespan. If they are not, the account will be ignored + // and deleted. + // 60 * 60 * 24 * 6 = 518400. 6 days. + const MAX_AGE_AFTER_USER_INVITE = 518400; + // Object images need to be at least 500 px wide const MIN_OBJECT_IMAGE_WIDTH = 540; // Object images need to be at least 500 px wide