You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: authentication.rb
    path of file: ./repos/gitlabhq/lib/gitlab/auth/crowd
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Auth
    module Crowd
      class Authentication < Gitlab::Auth::OAuth::Authentication
        def login(login, pass
    
        def login(login, password)
          return unless Gitlab::Auth::OAuth::Provider.enabled?(@provider)
          return unless login.present? && password.present?

          user_info = user_info_from_authentication(login, password)
          return unless user_info&.key?(:user)

          Gitlab::Auth::OAuth::User.find_by_uid_and_provider(user_info[:user], provider)
        end