Skip to content

A platform for community discussion. Free, open, simple.

360 B
Raw Blame
# frozen_string_literal: true

class ProblemCheck::TwitterLogin < ProblemCheck
  self.priority = "high"
  self.perform_every = 24.hours

  def call
    return no_problem if !authenticator.enabled?
    return no_problem if authenticator.healthy?

    problem
  end

  private

  def authenticator
    @authenticator ||= Auth::TwitterAuthenticator.new
  end
end