Problem/Motivation
I was getting this error while sending authentication code using Twilio SMS
Unable to deliver the code. Please contact support.
I debugged the problem and found this Twilio error https://www.twilio.com/docs/errors/21603
From tfa_sms.inc we have
$this->twilioNumber = variable_get('tfa_basic_twilio_account_number', '');
There is no UI setting to set its value. Authentication worked after I drush vset-ted the value.
This is not actually a problem, but it would be good for admin user's UX.
Proposed resolution
Write the code for creating the UI.
Remaining tasks
N/A
User interface changes
There will be a new textfield under Twilio account token in admin/config/people/tfa called Twilio account number, there we will set the Twilio number.
API changes
N/A
Comments
Comment #1
subhojit777Creates textfield for setting Twilio number
Comment #3
coltraneThanks @subhojit777! Committed.