No description, website, or topics provided.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

MEAN Token Auth


How do you set up email and/or password reset?


  1. Client-side
  • Add the forms to the profile.html template.
  • Add a function to the controller to handle the form submission that sends a PUT request to the server with the updated user info.
  1. Server-side
  • Add a route to handle the PUT request. Make sure that this can only be accessed if a user is authenticated.
  • Grab the payload from the request body and update the document in the database.
  • Send the appropriate response in JSON back to the client-side.
  1. Client-side
  • Handle the returned response appropriately - update the DOM, update localstorage, flash a message to the user, etc.



  1. The updated email does not have to be unique. How can you update this to check the DB for emails and ensure the new email is unique? On that note, should you even allow users to update emails?
  2. No tests.