From: Michael Tremer Date: Tue, 26 Nov 2024 18:08:04 +0000 (+0000) Subject: accounts: Don't send promotional messages to newly registered users X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f68c0c88d68092ff39064c9f909da92d44b95bc;p=ipfire.org.git accounts: Don't send promotional messages to newly registered users Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index eaa43161..237bde22 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -527,6 +527,9 @@ class Accounts(Object): "auth/messages/profile-setup-2", after=datetime.timedelta(days=7), ) + # Create a timestamp so we won't send promotional messages too soon + account.promotional_message_sent() + return account def create(self, uid, email, first_name, last_name, country_code=None):