An open API service indexing awesome lists of open source software.

https://github.com/heartcombo/devise-encryptable

Devise encryptable behavior since v2.1
https://github.com/heartcombo/devise-encryptable

Last synced: 6 months ago
JSON representation

Devise encryptable behavior since v2.1

Awesome Lists containing this project

README

          

# Devise Encryptable

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

## Usage

Add it to your Gemfile

```ruby
gem "devise-encryptable"
```

Add the `encryptable` module to your model:

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

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

```ruby
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 2020-2024 Rafael França, Carlos Antônio da Silva. Copyright 2012-2019 Plataformatec.