Updated elapsed registration_form_time to 5 seconds
• Updated: - elapsed registration_form_time to 5 seconds
This commit is contained in:
parent
d7271b899f
commit
187eb5ae78
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue