O'Reilly logo

Web Development with Clojure by Dmitri Sotnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required