New release please visit:
https://github.com/huacnlee/rucaptcha/releases
- Improved image for thicker interference lines.
- Add more colors.
- Fix: rucaptcha input maxlength attribute with config value.
- Fix session invalid warning, only for development env;
- Fix session.id error with upgrade Rails 6.0.2.1 or Rack 2.0.8 (#84)
- Fix invalid module name error. (#78)
- Support click captcha image to refresh new one by default.
- Use simple tag helper generate captcha img html, for avoid asset_host (#73).
- Add skip_cache_store_check configuration. (#63)
- Fix for generate captcha with relative path, not url. (#58)
- Change Yellow and Green colors to Pink and Deep Purple to pass WCAG 2.0's contrast test. (#70)
- Fix #67 a y chars will invalid error (only in 2.3.0).
- Add
config.outline
for use outline style. - Reduce colors down to 5 (red, blue, green, yellow and black).
- Add option
config.length
for support change number chars. (#57) - Add option
config.strikethrough
for enable or disable strikethrough. (#57)
- Windows support fixed with
send_data
method. (#45)
- Do not change captcha when
HEAD /rucaptcha
.
- Mount engine use
prepend
method to get high priority in config/routes.rb.
-
Mount Router by default, not need config now.
IMPORTANT: Wen you upgrade this version, you need remove
mount RuCaptcha::Engine
line from yourconfig/routes.rb
-
Default use [:file_store, 'tmp/cache/rucaptcha/session'] as RuCaptcha.config.cache_store, now it can work without any configurations.
NOTE: But you still need care about
config.cache_store
to setup on a right way.
- Use
ActiveSupport.on_load
to extend ActionController and ActionView.
- Fix
/rucaptcha
path issue whenconfig.action_controller.asset_host
has setup with CDN url.
Break Changes!
WARNING!: This version have so many break changes!
- Use C ext instead of ImageMagick, now it's no dependencies!
- New captcha style.
- Remove
len
,font_size
,cache_limit
config key, no support now. - Output
GIF
format.