debian-mirror-gitlab/lib/gitlab/auth/otp/fortinet.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
481 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
module Gitlab
module Auth
module Otp
module Fortinet
private
def forti_authenticator_enabled?(user)
::Gitlab.config.forti_authenticator.enabled &&
Feature.enabled?(:forti_authenticator, user)
end
def forti_token_cloud_enabled?(user)
::Gitlab.config.forti_token_cloud.enabled &&
Feature.enabled?(:forti_token_cloud, user)
end
end
end
end
end