Stefan4472 / Stefans-Blog

Personal blogging platform built in Python
MIT License
0 stars 0 forks source link

Disable Email "Submit" button while loading #62

Closed Stefan4472 closed 1 year ago

Stefan4472 commented 2 years ago

In the email/register endpoint, the transactional Welcome email is sent regardless of whether the user was already subscribed. See if there's a way to add a check to only send the welcome email if this is a new subscriber.

Actually, the main problem is that the "Submit" button can be clicked multiple times, resulting in multiple requests being sent. This can be trivially fixed by disabling the button until the callback is received.