Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-14 22:16:44 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-14 22:17:04 +0300
commit46cc04ce7a374127dd617c8fd2671efed2819cda (patch)
tree7baba36d7539448c569bde6e4320c761960e9f64 /app
parent393459b2b24fe788764ee787552da055846b9a63 (diff)
Add TODO
Diffstat (limited to 'app')
-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