blob: 1234ace0334202d82799392d21e585417a2d437c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# These calls help to authenticate to OAuth provider by providing username and password
#
module Gitlab
module Auth
module Database
class Authentication < Gitlab::Auth::OAuth::Authentication
def login(login, password)
return false unless Gitlab::CurrentSettings.password_authentication_enabled_for_git?
return user if user&.valid_password?(password)
end
end
end
end
end
|