diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-06-02 14:42:18 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-06-02 14:42:18 +0300 |
commit | fea591e5c5796235d28eeec4d27759f87fa9d8e2 (patch) | |
tree | cdf9f9c4b6902ea48fb73e482e277a6e9e407759 /lib/api/session.rb | |
parent | 8299fc277d417278a92179fd560431785ebf532e (diff) |
Rename finder to find_in_gitlab_or_ldap
Diffstat (limited to 'lib/api/session.rb')
-rw-r--r-- | lib/api/session.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/session.rb b/lib/api/session.rb index 1156aab8cc2..56e69b2366f 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_by_master_or_ldap(params[:email] || params[:login], params[:password]) + user = Gitlab::Auth.find_in_gitlab_or_ldap(params[:email] || params[:login], params[:password]) return unauthorized! unless user present user, with: Entities::UserLogin |