Class: Gitlab::Auth::Database::Authentication
- Inherits:
-
OAuth::Authentication
- Object
- OAuth::Authentication
- Gitlab::Auth::Database::Authentication
- Defined in:
- lib/gitlab/auth/database/authentication.rb
Instance Attribute Summary
Attributes inherited from OAuth::Authentication
Instance Method Summary collapse
Methods inherited from OAuth::Authentication
Constructor Details
This class inherits a constructor from Gitlab::Auth::OAuth::Authentication
Instance Method Details
#login(login, password) ⇒ Object
10 11 12 13 14 |
# File 'lib/gitlab/auth/database/authentication.rb', line 10 def login(login, password) return false unless Gitlab::CurrentSettings.password_authentication_enabled_for_git? return user if user&.valid_password?(password) end |