From 073e26fef075c8cdc9e44a37614e0c3d37372bb8 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 12 Jan 2023 16:21:41 +0100 Subject: [PATCH] Sent log --- extensions/users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/users.py b/extensions/users.py index 5be5905..f8bcf12 100644 --- a/extensions/users.py +++ b/extensions/users.py @@ -28,6 +28,7 @@ async def send_confirmation(user: str, email: str): msg=f'From: {configGet("sender", "mailer", "smtp")}\nSubject: Email confirmation\n\n'+configGet("message", "mailer", "messages", "registration_confirmation").format(configGet("external_address")+f"/users/{user}/confirm?code={confirmation_code}") ) col_emails.insert_one( {"user": user, "email": email, "used": False, "code": confirmation_code} ) + logWrite(f"Sent confirmation email to '{email}' with code {confirmation_code}") except Exception as exp: logWrite(f"Could not send confirmation email to '{email}' due to: {exp}")