requires:recaptcha_private_key,type: String,desc: 'Generate private key at http://www.google.com/recaptcha'
end
optional:repository_checks_enabled,type: Boolean,desc: "GitLab will periodically run 'git fsck' in all project and wiki repositories to look for silent disk corruption issues."
optional:repository_storages,type: Array[String],coerce_with: Validations::Types::CommaSeparatedToArray.coerce,desc: 'Storage paths for new projects'
optional:repository_storages_weighted,type: Hash,desc: 'Storage paths for new projects with a weighted value between 0 and 100'
optional:repository_storages_weighted,type: Hash,coerce_with: Validations::Types::HashOfIntegerValues.coerce,desc: 'Storage paths for new projects with a weighted value ranging from 0 to 100'
optional:require_two_factor_authentication,type: Boolean,desc: 'Require all users to set up Two-factor authentication'
requires:two_factor_grace_period,type: Integer,desc: 'Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication'
@@ -41,5 +41,13 @@ RSpec.describe Gitlab::Auth::UserAccessDeniedReason do
it{is_expected.toeq"Your account has been deactivated by your administrator. Please log back in from a web browser to reactivate your account at #{Gitlab.config.gitlab.url}"}
end
context'when the user is unconfirmed'do
beforedo
user.update!(confirmed_at: nil)
end
it{is_expected.tomatch/Your primary email address is not confirmed/}