Thank you very much for this marvelous article! Coming from Rails, this guide is very useful to explain some of the similarities and differences between Rails and Phoenix.
Your guide’s syntax is still up-to-date, although some package versions have since updated (Most importantly, Comeonin is now at version 2.4). I have left some small notes to you at some of the code, where I think that things might be clarified better.
Another thing I was wondering about: Why do you redirect to the `pages_path`when failing the login procedure? Wouldn’t it make more sense to redirect back to the login form?
In any case, thank you very much, I learned a lot from this article! :-)