summaryrefslogtreecommitdiff
path: root/app/controllers/jwt_controller.rb
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:17:04 -0500
commit46cc04ce7a374127dd617c8fd2671efed2819cda (patch)
tree7baba36d7539448c569bde6e4320c761960e9f64 /app/controllers/jwt_controller.rb
parent393459b2b24fe788764ee787552da055846b9a63 (diff)
downloadgitlab-ce-46cc04ce7a374127dd617c8fd2671efed2819cda.tar.gz
Add TODO
Diffstat (limited to 'app/controllers/jwt_controller.rb')
-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 0a993bf280e..bd9d7e4425d 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