Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed User Authentication With Express and Mongo!
You have completed User Authentication With Express and Mongo!
Preview
Use Express's built in router to add a GET route to display a registration form and a POST route for collecting user registration information.
References
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
A major part of any user authentication
system is the registration process.
0:00
After all, you can't very well
authenticate a user's identity
0:00
until you've added a way to capture and
store user information.
0:03
In this section of the course
I'll show you how to create
0:07
a registration form that
connects to a Mongo data store.
0:10
Users will be able to
sign up on your site and
0:13
their information will be
added to the database.
0:16
First let's define the routes users will
take to see the registration form and
0:19
submit the registration information.
0:23
We already have three
routes in our application.
0:26
We'll add two more routes now.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up