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
27739ce0
Commit
27739ce0
authored
Apr 13, 2022
by
minahilnichols
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove authenticate_user! override
parent
62b621f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
ee/app/controllers/registrations/company_controller.rb
ee/app/controllers/registrations/company_controller.rb
+0
-6
ee/spec/controllers/registrations/company_controller_spec.rb
ee/spec/controllers/registrations/company_controller_spec.rb
+1
-1
No files found.
ee/app/controllers/registrations/company_controller.rb
View file @
27739ce0
...
@@ -26,12 +26,6 @@ module Registrations
...
@@ -26,12 +26,6 @@ module Registrations
private
private
def
authenticate_user!
return
if
current_user
redirect_to
new_trial_registration_path
,
alert:
I18n
.
t
(
'devise.failure.unauthenticated'
)
end
def
permitted_params
def
permitted_params
params
.
permit
(
params
.
permit
(
:company_name
,
:company_name
,
...
...
ee/spec/controllers/registrations/company_controller_spec.rb
View file @
27739ce0
...
@@ -16,7 +16,7 @@ RSpec.describe Registrations::CompanyController do
...
@@ -16,7 +16,7 @@ RSpec.describe Registrations::CompanyController do
context
'when not authenticated'
do
context
'when not authenticated'
do
let
(
:logged_in
)
{
false
}
let
(
:logged_in
)
{
false
}
it
{
is_expected
.
to
redirect_to
(
new_
trial_registration_url
)
}
it
{
is_expected
.
to
redirect_to
(
new_
user_session_path
)
}
end
end
context
'when authenticated'
do
context
'when authenticated'
do
...
...
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