Fixed mail sending

This commit is contained in:
Thastertyn committed 2024-03-14 22:13:52 +01:00
1 parent c310586fca
commit 7342516ce7
3 files changed
+8 -10

No files matched your search

+1 -4
View File
@@ -62,10 +62,7 @@ class UserService:
print(f"Error: {e}")
return {"Failed": "Failed to insert into database. Username or email are likely in use already"}, 500
# TODO Implement mail sending
# Currently throws error - connection refused
# send_mail("Successfully registered!", email, "Congratulations! Your account has been successfully created.\nThis mail also serves as a test that the email address is correct")
send_mail("Successfully registered!", email, "Congratulations! Your account has been successfully created.\nThis mail also serves as a test that the email address is correct")
return {"Success": "User created successfully"}, 200