summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-14 11:38:44 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-14 11:38:44 +0200
commit1b62b86fdd1ad98e680c534f05fb32ff6e23fca4 (patch)
treec585b79f1a646588328b2c8f4741dea700783b89 /lib/api
parent60e0137c864e26fee0120dc4447bb95acc46ce51 (diff)
parent0c0ef7dfb6afb1695b62037fc0fa5aba6ce697d7 (diff)
downloadgitlab-ce-1b62b86fdd1ad98e680c534f05fb32ff6e23fca4.tar.gz
Merge remote-tracking branch 'origin/master' into artifacts-expire-date
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/session.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/session.rb b/lib/api/session.rb
index 56e69b2366f..56c202f1294 100644
--- a/lib/api/session.rb
+++ b/lib/api/session.rb
@@ -11,7 +11,7 @@ module API
# Example Request:
# POST /session
post "/session" do
- user = Gitlab::Auth.find_in_gitlab_or_ldap(params[:email] || params[:login], params[:password])
+ user = Gitlab::Auth.find_with_user_password(params[:email] || params[:login], params[:password])
return unauthorized! unless user
present user, with: Entities::UserLogin