代码拉取完成,页面将自动刷新
config.outline
for use outline style.config.length
for support change number chars. (#57)config.strikethrough
for enable or disable strikethrough. (#57)send_data
method. (#45)HEAD /rucaptcha
.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.
ActiveSupport.on_load
to extend ActionController and ActionView./rucaptcha
path issue when config.action_controller.asset_host
has setup with CDN url.Break Changes!
WARNING!: This version have so many break changes!
len
, font_size
, cache_limit
config key, no support now.GIF
format.: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.Module#prepend
method called.cache_store
config key to setup a cache store location for RuCaptcha.posix-spawn
dependency, used open3 instead (core funciontality), JRuby compatible (#24)width
, height
config.config.colorize
option, to allow use black text theme.config.expires_in
to allow change captcha code expire time.session[:_rucaptcha]
expire time, for protect Rails CookieSession Replay Attack.email
for shown correct keyboard on mobile view.config.cache_limit
,
RuCaptcha will use cache for next requests.
When you restart Rails processes it will generate new again and clean the old caches.verify_rucaptcha?
logic in somecase.zh-TW
translate file fixed.config.action_controller.asset_host
enabled case.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。