Class: Gitlab::Auth::Database::Authentication

Inherits:
OAuth::Authentication show all
Defined in:
lib/gitlab/auth/database/authentication.rb

Instance Attribute Summary

Attributes inherited from OAuth::Authentication

#provider, #user

Instance Method Summary collapse

Methods inherited from OAuth::Authentication

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Auth::OAuth::Authentication

Instance Method Details

#login(login, password) ⇒ Object



10
11
12
13
14
15
# File 'lib/gitlab/auth/database/authentication.rb', line 10

def (, password)
  return false unless Gitlab::CurrentSettings.password_authentication_enabled_for_git?
  return false if user.

  return user if user&.valid_password?(password)
end