This commit is contained in:
Kamil Trzcinski 2016-05-14 14:16:44 -05:00
parent 393459b2b2
commit 46cc04ce7a

View file

@ -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