Skip to content

Commit

Permalink
Merge pull request #10347 from 18F/stages/rc-2024-04-01
Browse files Browse the repository at this point in the history
Deploy RC 367.1 to Production
  • Loading branch information
mitchellhenke authored Apr 1, 2024
2 parents 4557abc + 8f47bfa commit a81be18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/forms/new_phone_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def validate_not_voip
def validate_allowed_carrier
return if phone.blank? || phone_info.blank?

if IdentityConfig.store.phone_carrier_registration_blocklist.include?(phone_info.carrier)
if IdentityConfig.store.phone_carrier_registration_blocklist_array.include?(phone_info.carrier)
errors.add(:phone, I18n.t('errors.messages.phone_carrier'), type: :phone_carrier)
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/application.yml.default
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ outbound_connection_check_url: 'https://checkip.amazonaws.com'
participate_in_dap: false
password_max_attempts: 3
personal_key_retired: true
phone_carrier_registration_blocklist: ''
phone_carrier_registration_blocklist_array: '[]'
phone_confirmation_max_attempts: 20
phone_confirmation_max_attempt_window_in_minutes: 1_440
phone_service_check: true
Expand Down
2 changes: 1 addition & 1 deletion lib/identity_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def self.build_store(config_map)
config.add(:password_max_attempts, type: :integer)
config.add(:password_pepper, type: :string)
config.add(:personal_key_retired, type: :boolean)
config.add(:phone_carrier_registration_blocklist, type: :comma_separated_string_list)
config.add(:phone_carrier_registration_blocklist_array, type: :json)
config.add(:phone_confirmation_max_attempt_window_in_minutes, type: :integer)
config.add(:phone_confirmation_max_attempts, type: :integer)
config.add(
Expand Down
5 changes: 2 additions & 3 deletions spec/forms/new_phone_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,8 @@

context 'blocklisted carrier numbers' do
before do
allow(IdentityConfig.store).to receive(:phone_carrier_registration_blocklist).and_return(
['Blocked Phone Carrier'],
)
allow(IdentityConfig.store).to receive(:phone_carrier_registration_blocklist_array).
and_return(['Blocked Phone Carrier'])
end

context 'when phone number carrier is in blocklist' do
Expand Down

0 comments on commit a81be18

Please sign in to comment.