This is a Password black listing gem where you can add Blacklisted words in YAML file.
Installation
Add this line to your application's Gemfile:
gem 'blacklisted_password'
And then execute:
$ bundle
Or install it yourself as:
$ gem install blacklisted_password
Then generate required files as follow:-
$ rails g blacklisted:install
Usage
In your Model just add :--
require 'blacklisted_password'
validates :password, blacklist: true
Contributing
- git clone
https://github.com/tbagchi85/blacklisted_password.git
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request