debian-mirror-gitlab/lib/gitlab/registration_features/password_complexity.rb
2023-07-09 08:55:56 +05:30

12 lines
312 B
Ruby

# frozen_string_literal: true
module Gitlab
module RegistrationFeatures
class PasswordComplexity
def self.feature_available?
::License.feature_available?(:password_complexity) ||
::GitlabSubscriptions::Features.usage_ping_feature?(:password_complexity)
end
end
end
end