Jason Lee
63b40be6f2
Use tag helper generate captcha img for avoid CDN prefix on image_tag. #73
...
Add onclick event for captcha img, to click refresh #61
2019-03-07 10:29:08 +08:00
Jason Lee
3d4198fd48
version 0.4.0
2019-01-22 17:22:29 +08:00
Jason Lee
1d1742e2ed
Merge pull request #58 from netqyq/master
...
fix: ru_captcha.root_url -> ru_captcha.root_path, to avoid generate a http url in https application.
2019-01-22 17:21:29 +08:00
Wayne
66dbac9639
Add skip_cache_store_check configuration
2018-12-22 14:43:42 +08:00
wewin11235
90484ceb34
Fix `maxlength` option of rucaptcha_input_tag method ( #68 )
2018-10-10 15:10:48 +08:00
Jason Lee
738cdfd00d
version 2.3.1
2018-09-17 19:20:08 +08:00
Jason Lee
682aa39ec0
Add for use outline style, and reduce colors down to 5 (red, blue, green, yellow and black).
2018-09-06 19:33:18 +08:00
EarlyZhao
b6c3d3735d
Add warning when session is invalid ( #66 )
2018-07-19 13:54:36 +08:00
Yongqiang Qu
fe33c73692
fix: ru_captcha.root_url -> ru_captcha.root_path, to avoid generate a http url in a https application.
2017-12-29 10:04:01 +08:00
Jason Lee
0561e88a22
config.line -> config.strikethrough and release version 2.2.0
2017-12-07 17:04:25 +08:00
Rina
3939d1bb02
Allow change chars length and disable strikethrough ( #57 )
2017-12-07 16:49:42 +08:00
万昭祎
2317eb2bda
Update warning message ( #50 )
2017-06-08 09:36:23 +08:00
Jason Lee
18701f7ae4
version 2.1.3
2017-03-22 15:53:12 +08:00
Jason Lee
dcf17e1765
Version 2.1.2
2017-03-09 16:43:56 +08:00
Jason Lee
7ca745df7b
version 2.1.1
2017-03-09 10:18:53 +08:00
Jason Lee
47c5edf254
Mount engine use `prepend` method to get high priority in routes.
2017-03-09 10:17:30 +08:00
Jason Lee
d1e6a267f0
version 2.1.0
2017-03-08 12:00:19 +08:00
Jason Lee
bb5b4efb8a
- Mount Router by default, not need config now.
...
- Default use [:file_store, 'tmp/cache/rucaptcha/session'] as RuCaptcha.config.cache_store, now it can work without any configurations.
- Improve README doc.
2017-03-08 11:54:36 +08:00
Jason Lee
6fdbcd6d38
Version 2.0.3
2017-02-15 12:31:45 +08:00
Jason Lee
d15e876ae8
Fix typo, and add test for ActionView
2017-02-15 12:31:25 +08:00
Jason Lee
eb1b0e8a29
Version 2.0.2
2017-02-15 12:03:53 +08:00
Jason Lee
46ddd15905
Use `ActiveSupport.on_load` to extend ActionController and ActionView.
...
http://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html
92703a9ea5/actionpack/lib/action_controller/base.rb (L264)
7da8d76206/actionview/lib/action_view/base.rb (L215)
2017-02-15 12:03:24 +08:00
Jason Lee
3b8d33f97a
require_relative -> require
2017-02-09 17:40:39 +08:00
Jason Lee
771b7afaa0
Fix `/rucaptcha` path issue when `config.action_controller.asset_host` has setup with CDN url.
...
close ruby-china/homeland/pull/856
fix #39
2017-02-04 21:47:13 +08:00
Jason Lee
93ac160201
Use C extension to remove ImageMagick dependency ( #40 )
2017-01-22 10:16:57 +08:00
lizy
9159b8cd10
Update view_helpers.rb ( #37 )
2017-01-09 17:09:46 +08:00
koali-fang
45a9056cf4
Fix session.id call in Rails 3.2 ( #36 )
2016-12-01 18:00:38 +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
e58c051632
Use puts instead of Rails.logger.warn to output warning
2016-11-09 15:30:23 +08:00
Jason Lee
21d1c0e787
Fix #35 just give a warning message if not setup a right cache_store, only raise on :null_store
2016-11-09 15:24:31 +08:00
Jason Lee
41d099022d
Rewrite Captcha.create to void complex method
2016-11-08 11:18:07 +08:00
Jason Lee
6f26819f5e
Version 1.1.2
2016-11-08 10:04:10 +08:00
Jason Lee
4ced53d87b
Fix #34 rucaptcha.root_url -> root_path, to avoid generate a http url in a https application.
2016-11-08 10:01:13 +08:00
Jason Lee
5616cef89c
Version 1.1.1
2016-10-29 11:07:30 +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
771a5621ff
Give warning when application use CookieStore
2016-10-26 18:03:15 +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
72d9e145db
Version 1.0.0
...
- Adjust to avoid lighter colors.
- Avoid continuous chars have same color.
- Use same color for each chars in :black_white mode.
2016-09-01 14:20:25 +08:00
Jason Lee
bb74854cea
Make sure it will render image when ImageMagick stderr have warning messages. ( fix #26 )
2016-06-22 11:05:30 +08:00
Jason Lee
bfc24bc56b
Fix cache with Rails 5.
2016-05-25 11:07:26 +08:00
Jason Lee
59ef004a5a
version 0.4.5
2016-05-25 10:09:55 +08:00
Johanderson Mogollon
e4daa11309
Removed posix-spawn dependency, used open3 instead (core funciontality), JRuby compatible ( #24 )
2016-05-25 10:07:34 +08:00
Jason Lee
850eea67ef
Formate code
2016-05-23 15:04:27 +08:00
Jason Lee
6232717898
Fix last version yellow color missing bug. version 0.4.4
2016-05-20 17:45:40 +08:00
Jason Lee
d42bf4c8e2
Change default implode to 0.3, version 0.4.3
2016-05-20 17:33:28 +08:00
Jason Lee
b46a4ad0b4
Lighter Text color.
...
Remove OCR test.
2016-05-20 17:19:27 +08:00
Jason Lee
ca90a9221b
Remove deprecated `width`, `height` config.
2016-05-20 16:09:48 +08:00
flypiggy
3bf67c0994
Delete rucapcha after verify ( #23 )
2016-05-20 10:20:20 +08:00