Eventually, our blog application will have an administration interface, and we will need to make sure that only an administrator user can access it. To this end, we will need to add the ability to authenticate to our user model. This chapter will cover how to do that.
Some readers may begin wondering why we are not using a third-party authentication library such as Devise. The reasons are
-
We want to always keep our application as simple as possible, with as few dependencies as possible. As you will soon see, adding a user model with salted password authentication is not difficult. ...