From 87b0035bd6eb12baa60bd068bea8de3275bbc208 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 15 Nov 2021 09:19:40 +0000 Subject: [PATCH] change expires_in from 2 minutes to 60 minutes --- config/initializers/rucaptcha.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/rucaptcha.rb b/config/initializers/rucaptcha.rb index 81b948d..d774728 100644 --- a/config/initializers/rucaptcha.rb +++ b/config/initializers/rucaptcha.rb @@ -2,7 +2,7 @@ RuCaptcha.configure do # Color style, default: :colorful, allows: [:colorful, :black_white] # self.style = :colorful # Custom captcha code expire time if you need, default: 2 minutes - # self.expires_in = 120 + self.expires_in = 60.minutes # [Requirement / 重要] # Store Captcha code where, this config more like Rails config.cache_store # default: Read config info from `Rails.application.config.cache_store` @@ -18,4 +18,4 @@ RuCaptcha.configure do # self.strikethrough = true # enable/disable Outline style # self.outline = false -end \ No newline at end of file +end