Task A: Account Registration
User registration and authentication is a self-contained workflow that is unrelated to the rest of the our application’s functionality. This makes it a good candidate for creating a namespace to hold all the authentication functions and routes. We’ll create a picture-gallery.routes.auth namespace and, inside it, implement the functions to handle this task.
Before we continue we need to understand the workflow involved in user registration. The user has to enter some identifying information in a form. The form submission has to be processed by the handler to decide whether a user account should be created.
Since all the user data can be collected in a single step, we need a single page with a form to collect the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access