Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
815a5f2e
Commit
815a5f2e
authored
Mar 26, 2021
by
Nick Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove disable_query_limiting in RegistrationsController
parent
ada427b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
+1
-5
No files found.
app/controllers/registrations_controller.rb
View file @
815a5f2e
...
@@ -9,7 +9,7 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -9,7 +9,7 @@ class RegistrationsController < Devise::RegistrationsController
layout
'devise'
layout
'devise'
prepend_before_action
:check_captcha
,
only: :create
prepend_before_action
:check_captcha
,
only: :create
before_action
:
disable_query_limiting
,
:
ensure_destroy_prerequisites_met
,
only:
[
:destroy
]
before_action
:ensure_destroy_prerequisites_met
,
only:
[
:destroy
]
before_action
:load_recaptcha
,
only: :new
before_action
:load_recaptcha
,
only: :new
before_action
:set_invite_params
,
only: :new
before_action
:set_invite_params
,
only: :new
...
@@ -162,10 +162,6 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -162,10 +162,6 @@ class RegistrationsController < Devise::RegistrationsController
@devise_mapping
||=
Devise
.
mappings
[
:user
]
@devise_mapping
||=
Devise
.
mappings
[
:user
]
end
end
def
disable_query_limiting
Gitlab
::
QueryLimiting
.
disable!
(
'https://gitlab.com/gitlab-org/gitlab/-/issues/20798'
)
end
def
load_recaptcha
def
load_recaptcha
Gitlab
::
Recaptcha
.
load_configurations!
Gitlab
::
Recaptcha
.
load_configurations!
end
end
...
...
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