diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-08-12 16:16:12 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-08-18 16:47:26 -0500 |
commit | e2f9c87600e34a415d43c981e0182094b123771f (patch) | |
tree | fbda99f75e02c61e018e68ad3557e0c0d59f086f /config | |
parent | 717366d28da11acc6dbe60301bf7e2394400b3c1 (diff) | |
download | gitlab-ce-e2f9c87600e34a415d43c981e0182094b123771f.tar.gz |
Added checks for 2FA to the API `/sessions` endpoint and the Resource Owner Password Credentials flow.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/doorkeeper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index 618dba74151..f78f0cf7c5c 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -12,7 +12,7 @@ Doorkeeper.configure do end resource_owner_from_credentials do |routes| - Gitlab::Auth.find_with_user_password(params[:username], params[:password]) + UserRetrievalService.new(params[:username], params[:password]).execute end # If you want to restrict access to the web interface for adding oauth authorized applications, you need to declare the block below. |