Skip to content

Instantly share code, notes, and snippets.

@kbparagua
Created November 22, 2015 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbparagua/207fb98ebcb38e96bd42 to your computer and use it in GitHub Desktop.
Save kbparagua/207fb98ebcb38e96bd42 to your computer and use it in GitHub Desktop.
def correct_password? user, password
encrypted_password = BCrypt::Password.new password
user.encrypted_password == encrypted_password
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment