diff options
Diffstat (limited to 'lib/gitlab/auth/otp/duo_auth.rb')
-rw-r--r-- | lib/gitlab/auth/otp/duo_auth.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/gitlab/auth/otp/duo_auth.rb b/lib/gitlab/auth/otp/duo_auth.rb new file mode 100644 index 00000000000..eeae04bc08b --- /dev/null +++ b/lib/gitlab/auth/otp/duo_auth.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Gitlab + module Auth + module Otp + module DuoAuth + def duo_auth_enabled?(_user) + ::Gitlab.config.duo_auth.enabled + end + end + end + end +end |