BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d1f50195
Commit
d1f50195
authored
May 02, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct auth finder
parent
b1ffc9f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
session.rb
lib/api/session.rb
+1
-6
grack_auth.rb
lib/gitlab/backend/grack_auth.rb
+1
-1
No files found.
lib/api/session.rb
View file @
d1f50195
...
...
@@ -11,12 +11,7 @@ module API
# Example Request:
# POST /session
post
"/session"
do
user
,
_
=
Gitlab
::
Auth
.
find
(
params
[
:email
]
||
params
[
:login
],
params
[
:password
],
project:
nil
,
ip:
request
.
ip
)
user
=
Gitlab
::
Auth
.
find_by_master_or_ldap
(
params
[
:email
]
||
params
[
:login
],
params
[
:password
])
return
unauthorized!
unless
user
present
user
,
with:
Entities
::
UserLogin
...
...
lib/gitlab/backend/grack_auth.rb
View file @
d1f50195
...
...
@@ -95,7 +95,7 @@ module Grack
end
def
authenticate_user
(
login
,
password
)
user
,
_
=
Gitlab
::
Auth
.
new
.
find_by_master_or_ldap
(
login
,
password
)
user
=
Gitlab
::
Auth
.
new
.
find_by_master_or_ldap
(
login
,
password
)
unless
user
user
=
oauth_access_token_check
(
login
,
password
)
...
...
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