summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-14 14:16:44 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-14 14:16:44 -0500
commitee725db8e0f5d95c14031bd939a414e068497bb4 (patch)
treeed1ca7b30db6b3ded3c49a22b0d297c13a8607b1
parenta77686d593347742d55995f1e0055a7a6f9da4ea (diff)
downloadgitlab-ce-ee725db8e0f5d95c14031bd939a414e068497bb4.tar.gz
Add TODO
-rw-r--r--app/controllers/jwt_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/jwt_controller.rb b/app/controllers/jwt_controller.rb
index e0e0a98a6c1..0edf084e9e4 100644
--- a/app/controllers/jwt_controller.rb
+++ b/app/controllers/jwt_controller.rb
@@ -42,6 +42,9 @@ class JwtController < ApplicationController
end
def authenticate_user(login, password)
+ # TODO: this is a copy and paste from grack_auth,
+ # it should be refactored in the future
+
user = Gitlab::Auth.new.find(login, password)
# If the user authenticated successfully, we reset the auth failure count