From 862064221492c5780038d695598695bdcf1209f4 Mon Sep 17 00:00:00 2001 From: white <122345776@umail.ucc.ie> Date: Fri, 28 Feb 2025 11:37:31 +0000 Subject: [PATCH] UPDATE: Added ability to unsubscribe from the newsletter --- web_server/utils/email.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/web_server/utils/email.py b/web_server/utils/email.py index 3554240..848245f 100644 --- a/web_server/utils/email.py +++ b/web_server/utils/email.py @@ -131,13 +131,6 @@ def newsletter_conf(email): """ Handles sending a confirmation email that a user has joined a newsletter """ - salt = token_hex(32) - - token = generate_token(email, salt) - token += "CrEaTe" - r.setex(token, 3600, salt) - - full_url = url + "/confirm_account_creation/" + token content = f""" @@ -158,7 +151,7 @@ def newsletter_conf(email):

Welcome to the Official Gander Newsletter!

If you are receiving this email, it means that you have been officially added to the Monthly Gander newsletter.

In this newsletter, you will receive updates about: your favourite streamers; important Gander updates; and more!

- unsubscribe + Unsubscribe?