Devise encryptable behavior since v2.1
Ruby Logos
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gemfiles
lib
test
.gitignore
.travis.yml Update Travis CI notification settings. Nov 1, 2015
Changelog.md
Gemfile
Gemfile.lock
LICENSE Bump copyright year [ci skip] Feb 8, 2015
README.md
Rakefile
devise-encryptable.gemspec Cleanup gemspec a bit. Jan 3, 2014

README.md

Devise Encryptable

Build Status

Use alternative (and even your own!) encryptors with Devise.

Usage

Add it to your Gemfile

gem "devise-encryptable"

Add the encryptable module to your model:

class User < ActiveRecord::Base
  devise :database_authenticatable, :encryptable
end

And add the password_salt field to the database through a migration:

class DeviseCreateUsers < ActiveRecord::Migration
  def change
    add_column :users, :password_salt, :string
  end
end

And you're ready to go!

Contributing

  • Fork it
  • Write your changes
  • Commit
  • Send a pull request

License

Apache License version 2. Copyright 2012-2015 Plataformatec http://plataformatec.com.br