logo
  • Start here
  • Episodes
  • Articles
  • Log in
  • Sign up

Phoenix 1.4 Chat Server: Part 3

Topics:
Login
ChitChat
Phoenix
Sessions

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

  • Series Overview
  • Part 1
  • Part 2
  • Part 3 (this page)
  • Part 4
  • Part 5
  • Part 6

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

Share

Request a free email course
Back to index

No Comments

Log in to leave a comment
Alchemist Camp 2017-2020
Hosted on Digital Ocean
Terms and Conditions