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
andlogout
-
a Session Controller with
new
,create
anddelete
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
No Comments