Skip to content

vpon/idp_captcha

Repository files navigation

IDP Captcha

https://travis-ci.org/Niandalu/idp_captcha.svg

I know it’s kind of stupid, but it is what I need now. So I made it.

Server

  1. Add the following code to your Gemfile
    gem 'idp_captcha', github: 'niandalu/idp_captcha'
        
  2. Mount it in config/route.rb
    mount IdpCaptcha::Engine => '/idp_captcha'
        

Client

  1. Request SERVER/idp_captcha/new to get :code
  2. Display the image by assigning src to SERVER/idp_captcha/:code
  3. To validate the user input captcha, DELETE SERVER/idp_captcha/:code with { captcha: <USER INPUT> }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published