O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

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

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.

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