Skip to content
master
Switch branches/tags
Code

Latest commit

Devise currently supports Rails 4.1+ and Ruby 2.1+, so Encryptable
should follow suit.

Note: I intend to remove support from older Rails/Ruby versions from
Devise (and thus Encryptable) at some point.
00abf13

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Devise Encryptable

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

About

Devise encryptable behavior since v2.1

Resources

License

Packages

No packages published

Languages