Gem RuCaptcha

bighuzi · July 28, 2018 · Last by bighuzi replied at July 29, 2018 · 3718 hits

想问下这个 RuCaptcha gem 如何配置远程的 redis 因为有两台服务器 在 config/environments/production.rb 里面设置

config.cache_store = :redis_cache_store, {url: 'redis://XXXXXX', password: 'XXXX'}

RuCaptcha.rb 配置

RuCaptcha.configure do
   self.expires_in = 120
  self.cache_store = :redis_cache_store
  self.length = 3
end

会说验证码不对,请问下是不是我配置的不对?? @huacnlee

应该不是配个 symbol 而是 cache store 的实例

Reply to lithium4010

那个怎么完的呢/。?

You need to Sign in before reply, if you don't have an account, please Sign up first.