Fixed mail sending
This commit is contained in:
1 parent
c310586fca
commit
7342516ce7
3 files changed
+8
-10
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user