devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Strategies::Authenticatable#valid_password?

Note: unlike `Model.valid_password?`, this method does not actually
ensure that the password in the params matches the password stored in
the database. It only checks if the password is *present*. Do not rely
on this method for validating that a given password is correct.

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise/strategies/authenticatable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Strategies--Authenticatable-valid_password--for-pr


# Commit to git

git add lib/devise/strategies/authenticatable.rbgit commit -m "better docs for Devise::Strategies::Authenticatable#valid_password?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Devise--Strategies--Authenticatable-valid_password--for-pr

hub pull-request


# Celebrate!