Updated the newsletter subscription form. All 3 fields are now required and the email is validated on the server.
Updated the function for creating a JWT to take in an expire time instead of having it be hard coded.
Updated the function to send an email so multiple types of emails can be sent.
When the user clicks the validation link from their email, they are now sent to a success or failure page instead of having json sent back to the browser. A new email is sent confirming that their email is now active. An unsubscribe link is included in that email.
Added a route to handle unsubscriptions. When clicked, the server deactivates the subscriber's account then redirects the browser to a success or failure page. The user is sent an email when their account is successfully unsubscribed.
Updates