Skip to content

A user authentication system for Rails 5 rapid prototyping: Sign up, login in and out, remember me, and update password functionality.

License

Notifications You must be signed in to change notification settings

dpaola2/user-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

User Auth for Rails (rapid prototyping)

Why use this instead of Devise?

Devise is fast to get up and running but confusing and clunky to customize in the long term. Instead, this approach gives you generated code that you can then customize to your project's unique requirements.

What you get

Generated code:

  • User model and migration, w/ hashed password using bcrypt and "remember me" functionality
  • Controllers, Views, and Helpers for signing up, logging in and out, and changing your password

Usage

Add this to your Gemfile:

gem 'user-auth', git: "https://github.com/dpaola2/user-auth"

Then run the generator:

bin/rails generate user_auth

It will ask you if you'd like to overwrite the user.rb model. The answer is (usually) yes.

Don't forget to run bin/rake db:migrate after you're happy with the generated code.

About

A user authentication system for Rails 5 rapid prototyping: Sign up, login in and out, remember me, and update password functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published