Wrapping Up

This chapter has been challenging, but we’ve come a long way. Let’s take stock:

  • We added the comeonin dependency to our project.

  • We built our own authentication layer.

  • We built the associated changesets to handle validation of passwords.

  • We implemented a module plug that loads the user from the session and made it part of our browser pipeline.

  • We implemented a function plug and used it alongside some specific actions in our controller pipeline.

In the next chapter, you’ll dive deeper into Ecto’s waters by exploring relationships. We’ll also begin to flesh out our application, using code generators to speed us along.

Get Programming Phoenix now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.