blob: a561e97dfcd48147b6d755182374a90b911cb1df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# 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
|