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 ...