O'Reilly logo

Rails, Angular, Postgres, and Bootstrap by David B. Copeland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting Up Devise for Authentication

Creating an authentication system from scratch is rarely a good idea. It’s difficult to get every part of it correct since security controls can be subverted in unusual and counterintuitive ways. Because of this, we’re going to use a tried-and-true Rails plugin called Devise.[10]

Devise is built to handle almost any sort of authentication requirement, and will definitely suit our needs. Here’s what we want our authentication system to do:

  • Employees who need to use our app will sign up on their own.
  • They must use their company email when signing up.
  • Their password must be at least 10 characters long.

We aren’t going to require users to validate their email addresses, mostly to keep things simple by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required