311
312
313
314
315
316
317
318
319
320
321
322
|
# File 'spaceship/lib/spaceship/two_step_or_factor_client.rb', line 311
def request_two_factor_code_from_phone_choose(phone_numbers, code_length)
puts("Please select a trusted phone number to send code to:")
available = phone_numbers.collect do |current|
current['numberWithDialCode']
end
chosen = choose_phone_number(available)
phone_id = phone_id_from_masked_number(phone_numbers, chosen)
push_mode = push_mode_from_masked_number(phone_numbers, chosen)
request_two_factor_code_from_phone(phone_id, chosen, code_length, push_mode)
end
|