Send confirmation emails directly, rather than with celery

Whenver bookwyrm has an influx of new users, celery gets delayed and
the emails don't get sent out promptly, which causes people to first
resend the email multiple times, and then to email me, both of which
just create more work and confusion for everyone involved.
This commit is contained in:
Mouse Reeve 2022-11-01 18:08:45 -07:00
parent 43202f5bb7
commit 1c949a5d71

View file

@ -23,7 +23,7 @@ def email_confirmation_email(user):
data = email_data()
data["confirmation_code"] = user.confirmation_code
data["confirmation_link"] = user.confirmation_link
send_email.delay(user.email, *format_email("confirm", data))
send_email(user.email, *format_email("confirm", data))
def invite_email(invite_request):