devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Models::DatabaseAuthenticatable::ClassMethods#find_for_database_authentication
We assume this method already gets the sanitized values from the DatabaseAuthenticatable strategy. If you are using this method on your own, be sure to sanitize the conditions hash to only include the proper fields.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/models/database_authenticatable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Models--DatabaseAuthenticatable--ClassMethods-find_for_database_authentication-for-pr
# Commit to gitgit add lib/devise/models/database_authenticatable.rbgit commit -m "better docs for Devise::Models::DatabaseAuthenticatable::ClassMethods#find_for_database_authentication"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise--Models--DatabaseAuthenticatable--ClassMethods-find_for_database_authentication-for-pr
hub pull-request
# Celebrate!