Phoenix 1.4 Chat Server: Part 3

This episode is part 3 in a Phoenix 1.4 Chat Server series:

In this episode we build out login functionality for our Phoenix 1.4 Chat Server. To do this we create the following:

  • routes for login and logout
  • a Session Controller with new, create and delete actions
  • an authenticate_by_email_password helper in the Accounts context
  • a Session View (just the default boilerplate like all the other views)
  • a new sessions page (i.e. a login page)

Then, finally we add a little bit of visual feedback in the template so we can see who's logged in.

(Source code available for premium members)

Next episode: Part 4

Back to index

No Comments