Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmizerany/sinatra-captcha
Quick, simple, fast captcha for Sinatra
https://github.com/bmizerany/sinatra-captcha
Last synced: about 1 month ago
JSON representation
Quick, simple, fast captcha for Sinatra
- Host: GitHub
- URL: https://github.com/bmizerany/sinatra-captcha
- Owner: bmizerany
- Created: 2009-04-30T07:24:29.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-04-30T09:36:52.000Z (over 15 years ago)
- Last Synced: 2024-08-06T03:05:52.406Z (3 months ago)
- Language: Ruby
- Homepage: http://www.sinatrarb.com
- Size: 73.2 KB
- Stars: 37
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Quick, simple, easy captcha for Sinatra apps
## Installation
gem install sinatra-captcha
require 'rubygems'
require 'sinatra'
require 'sinatra/captcha'get '/' do
erb :captcha
endpost '/' do
halt(401, "invalid captcha") unless captcha_pass?
"passed!"
end__END__
@@ captcha
Catcha Example
<%= captcha_image_tag %>
<%= captcha_answer_tag %>
Thank you to ERR THE BLOG for inspiration:
http://errtheblog.com/posts/43-captchator-on-rails