lib/heroku/command/two_factor.rb
# 2fa
#
# Display whether two-factor is enabled or not
#
2fa
Display whether two-factor is enabled or not
2fa Display whether two - factor is enabled or not
def index
      status = api.request(
        :expects => 200,
        :method  => :get,
        :path    => "/account/two-factor"
      ).body
      if status["enabled"]
        display "Two-factor auth is enabled."
      else
        display "Two-factor is not enabled."
      end
    end
def index status = api . request ( :expects => 200 , :method => :get , :path => "/account/two-factor" ) . body if status [ "enabled" ] display "Two-factor auth is enabled." else display "Two-factor is not enabled." end end
2fa
Display whether two-factor is enabled or not
2fa Display whether two - factor is enabled or not