module ActionController::HttpAuthentication::Basic

def has_basic_credentials?(request)

def has_basic_credentials?(request)
  request.authorization.present? && (auth_scheme(request).downcase == "basic")
end