Skip to content

Instantly share code, notes, and snippets.

@kbparagua
Created November 22, 2015 09:18
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/4c943d204c65f4dfc245 to your computer and use it in GitHub Desktop.
Save kbparagua/4c943d204c65f4dfc245 to your computer and use it in GitHub Desktop.
encrypted_password = BCrypt::Password.new password
if user.encrypted_password == encrypted_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment