Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gab
social
gab-social
Commits
187eb5ae
Commit
187eb5ae
authored
Feb 19, 2021
by
Developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated elapsed registration_form_time to 5 seconds
• Updated: - elapsed registration_form_time to 5 seconds
parent
d7271b89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/controllers/auth/registrations_controller.rb
app/controllers/auth/registrations_controller.rb
+1
-1
No files found.
app/controllers/auth/registrations_controller.rb
View file @
187eb5ae
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment