Socket
Book a DemoInstallSign in
Socket

dumb_password_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dumb_password_rails

0.1.8
bundlerRubygems
Version published
Maintainers
1
Created
Source

dumb_password_rails

A password validator for Rails 3+ apps. Ensures that your users don't use passwords included in the top 10,000 worst passwords to protect their accounts from brute force attacks. Read the wired article

Installation

Add this line to your application's Gemfile:

gem 'dumb_password_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dumb_password_rails

Usage

Add this line to your model:

validates :password, dumb_password: true

Replace :password with your own custom virtual password attribute if yours is different. If you are using Devise, your virtual password attribute is :password.

The default error message is Your password is vulnerable. Use a more secure password. If you'd like to add your own custom message.

validates :password, dumb_password: {message: <YOUR CUSTOM MESSAGE>}

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests.

Inspiration

Contributing

Bug reports and pull requests are welcome!. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 26 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.