From bcc73e58ba3118b25e0c29adfe4dc0835f7995f9 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 16 Nov 2024 18:12:41 +0100 Subject: [PATCH] feat: Enhances registration email details Updates registration approval and denial emails to include the domain name, enhancing context for the recipient. --- src/synapse_registration/registration/signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/synapse_registration/registration/signals.py b/src/synapse_registration/registration/signals.py index 0bc2d35..3e8ac98 100644 --- a/src/synapse_registration/registration/signals.py +++ b/src/synapse_registration/registration/signals.py @@ -16,7 +16,7 @@ def handle_status_change(sender, instance, created, **kwargs): if status == UserRegistration.STATUS_APPROVED: send_mail( "Registration Approved", - f"Congratulations, {instance.username}! Your registration has been approved.", + f"Congratulations, {instance.username}! Your registration at {settings.MATRIX_DOMAIN} has been approved.", settings.DEFAULT_FROM_EMAIL, [instance.email], ) @@ -49,7 +49,7 @@ def handle_status_change(sender, instance, created, **kwargs): elif status == UserRegistration.STATUS_DENIED: send_mail( "Registration Denied", - f"Sorry, {instance.username}. Your registration request has been denied.", + f"Sorry, your registration request at {settings.MATRIX_DOMAIN} has been denied.", settings.DEFAULT_FROM_EMAIL, [instance.email], )