← All series

Series contents

Log in to track your progress

  1. 1. Phoenix 1.4 Chat Server: Part 2 Episode
  2. 2. Phoenix 1.4 Chat Server: Part 4 Episode
  3. 3. Phoenix 1.4 Chat Server: Part 6 Episode
  4. 4. Phoenix 1.4 Chat Server: Part 9 Episode
  5. 5. Phoenix 1.4 Chat Server: Part 7 Episode
  6. 6. Phoenix 1.4 Chat Server: Part 3 Episode
  7. 7. Phoenix 1.4 Chat Server: Part 1 Episode
  8. 8. Phoenix 1.4 Chat Server: Part 5 Episode
  9. 9. Phoenix 1.4 Chat Server: Part 8 Episode

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

Open standalone page ↗

No Comments