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
d8d35669
Commit
d8d35669
authored
Aug 03, 2021
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cr remarks
parent
0b9446e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
lib/gitlab/auth/result.rb
lib/gitlab/auth/result.rb
+1
-0
lib/gitlab/middleware/go.rb
lib/gitlab/middleware/go.rb
+1
-1
No files found.
lib/gitlab/auth/result.rb
View file @
d8d35669
...
...
@@ -3,6 +3,7 @@
module
Gitlab
module
Auth
Result
=
Struct
.
new
(
:actor
,
:project
,
:type
,
:authentication_abilities
)
do
self
::
EMPTY
=
self
.
new
(
nil
,
nil
,
nil
,
nil
).
freeze
def
ci?
(
for_project
)
type
==
:ci
&&
project
&&
...
...
lib/gitlab/middleware/go.rb
View file @
d8d35669
...
...
@@ -134,7 +134,7 @@ module Gitlab
end
def
authentication_result
(
request
,
project
)
empty_result
=
Gitlab
::
Auth
::
Result
.
new
(
nil
,
nil
,
nil
,
nil
)
empty_result
=
Gitlab
::
Auth
::
Result
::
EMPTY
return
empty_result
unless
has_basic_credentials?
(
request
)
login
,
password
=
user_name_and_password
(
request
)
...
...
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