Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

pilotcreative/simple_recaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Recaptcha

Ruby library for reCAPTCHA

Usage

require "simple_recaptcha"

SimpleRecaptcha.verify(:private_key => "your-private-key", :ip => "127.0.0.1", :challenge => "challengestring", :response => "user input")

All 4 attributes must be specified: :private_key, :ip, :challenge, :response

Configuration

You can configure Simple Recaptcha in two different ways:

SimpleRecaptcha.private_key = "your-private-key"

SimpleRecaptcha.configure do |confg|
  config.private_key = "your-private-key"
  config.public_key = "your-public-key"
end

You can set public_key for consistency, however it is not used during verification

Copyright

Copyright © 2011 Wojciech Wnętrzak. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages