Updated elapsed registration_form_time to 5 seconds

• Updated:
- elapsed registration_form_time to 5 seconds
This commit is contained in:
Developer 2021-02-19 12:30:46 -05:00
parent d7271b899f
commit 187eb5ae78
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
private private
def check_form_submission_speed 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') flash[:alert] = I18n.t('auth.too_fast')
respond_with_navigational(resource) { respond_with_navigational(resource) {
redirect_to new_user_registration_path redirect_to new_user_registration_path