0.0
No commit activity in last 3 years
No release in over 3 years
Drupal Hash implementation for Devise Encryptable
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Devise Drupal

Build Status

Drupal Hash implementation for Devise Encryptable.

Usage

Add it to your Gemfile

gem "devise-drupal"

Follow the device-encryptable readme.

Add the password_salt methods to your model:

class User < ActiveRecord::Base
  def password_salt
    'no salt'
  end

  def password_salt=(new_salt)
  end
end

Add the encryptor to your initializor

# This on top of your file:
require Rails.root.join('lib', 'devise', 'encryptable', 'encryptors', 'drupal_hash')

# This inside your "Devise.setup do |config|"
config.encryptor = :drupal_hash

Beware: updating your encryptor on a database will make the current passwords unusable!

And you're ready to go!

Contributing

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

License

GNU GENERAL PUBLIC LICENSE Version 2. 2014 .VDMi/ http://www.vdmi.nl