Commit Graph

23 Commits

Author SHA1 Message Date
Rina 3939d1bb02 Allow change chars length and disable strikethrough (#57) 2017-12-07 16:49:42 +08:00
Jason Lee d15e876ae8 Fix typo, and add test for ActionView 2017-02-15 12:31:25 +08:00
Jason Lee 93ac160201 Use C extension to remove ImageMagick dependency (#40) 2017-01-22 10:16:57 +08:00
Jason Lee 107339ea9e Add an `:keep_session` option for `verify_rucaptcha?` method to giva a way for let you keep session on verify, if true, RuCaptcha will not delete the captcha code session after validation. 2016-12-01 11:11:10 +08:00
Jason Lee 41d099022d Rewrite Captcha.create to void complex method 2016-11-08 11:18:07 +08:00
Jason Lee 58ab0adb75 Fix test case 2016-10-29 11:06:10 +08:00
Jason Lee d0d6718e15 Add config.cache_store config.
Store captcha code in Backend cache.
Not requirement Session store now.
2016-10-29 10:48:05 +08:00
Jason Lee f8590ad45a Revert "Fix Session replay secure issue that when Rails application use CookieStore."
This reverts commit e129851fd9.
2016-10-26 17:36:21 +08:00
Jason Lee e129851fd9 Fix Session replay secure issue that when Rails application use CookieStore. 2016-10-14 17:33:34 +08:00
Jason Lee 4f08122960 Fix test 2016-05-25 11:08:48 +08:00
Jason Lee bfc24bc56b Fix cache with Rails 5. 2016-05-25 11:07:26 +08:00
Jason Lee 19dc27e71b Format code 2016-05-23 15:11:04 +08:00
Jason Lee b46a4ad0b4 Lighter Text color.
Remove OCR test.
2016-05-20 17:19:27 +08:00
Jason Lee e5ff2b9e77 Fix NoMethodError bug when params[:_rucaptha] is nil. 2016-04-25 10:09:35 +08:00
Jason Lee 0a7fa3782b Feature option to change color theme
* Add `config.style` option, to allow use change render style.
2016-04-06 15:50:30 +08:00
tiroc 77ed68d112 Added session[:_rucaptcha] expire time to configuration. 2016-03-14 16:41:27 +08:00
Eric Guo a7bc855fa2 Fix can not create file in tmp_dir in travis 2016-02-28 18:49:00 +08:00
Jason Lee bcdac25b17 More complex Image render: compact text, strong lines, +/-5 rotate...
[DEPRECATION] config.width, config.height removed, use config.font_size.
Fix the render position in difference font sizes.
Fix input field type, and disable autocorrect, autocapitalize, and limit maxlength with char length.
Version 0.3.0
2015-11-05 18:20:41 +08:00
Jason Lee 2c72ef1ad3 Add expire time, for protect Rails CookieSession Replay Attack. version 0.2.4 2015-11-02 16:59:42 +08:00
Jason Lee c46f88e84f Added file cache, can setup how many images you want generate by ,
RuCaptcha will use cache for next requests.
  When you restart Rails processes it will generate new again and clean the old caches.
2015-10-30 11:32:02 +08:00
Jason Lee 13cd85dc6e RTesseract use mini_magick. 2015-10-29 18:28:11 +08:00
Jason Lee 2508a05589 Try to create tmp dir, if not exists. 2015-10-29 18:22:27 +08:00
Jason Lee 4ec52d887b Add some test case 2015-10-26 21:55:46 +08:00