From 187eb5ae78f35445db6a571633d9c3127cf89b6c Mon Sep 17 00:00:00 2001 From: Developer <> Date: Fri, 19 Feb 2021 12:30:46 -0500 Subject: [PATCH] Updated elapsed registration_form_time to 5 seconds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - elapsed registration_form_time to 5 seconds --- app/controllers/auth/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index 91ed35a8..5de046ec 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -69,7 +69,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController private def check_form_submission_speed - if session[:registration_form_time] > 10.seconds.ago + if session[:registration_form_time] > 5.seconds.ago flash[:alert] = I18n.t('auth.too_fast') respond_with_navigational(resource) { redirect_to new_user_registration_path