We cover:

  • Adding secure passwords to models
  • Using more validations
  • Adding authentication to a session
  • Using rails console
  • Using database transactions
  • Writing an Active Record hook

Chapter 15
Task J: Logging In

We have a happy customer: in a short time, we’ve jointly put together a basic shopping cart that she can start showing to her users. She’d like to see just one more change. Right now, anyone can access the administrative functions. She’d like us to add a basic user administration system that would force you to log in to get into the administration parts of the site.

Chatting with our customer, it seems as if we don’t need a particularly sophisticated security system for our application. We just need to recognize a number of people based on usernames and passwords. Once recognized, these folks can use all of the administration functions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.42.196