Notes Used to Craft this Lesson
So, we have an endpoint that allows users to update their account email. This endpoint:
Validates the desired new email
Requires the user to enter their password for security
Updates the user's email
Logs the change within via Email History
Sends a notification email to the old email