Phasedio / webapp

1 stars 0 forks source link

Reformat cellphone number on update #18

Closed brianbest closed 8 years ago

brianbest commented 8 years ago

Twilio needs numbers formatted in international format (ex. +15555555555) in order to send SMS messages to users. We need a script that will do validation and formatting of updated numbers.

some variations to test against would be: (905) 555 1234 905 555 1234 905-555-1234 (905) 555-1234 after formatting it the number should equal +19055551234

daveriedstra commented 8 years ago

addressed in https://github.com/Phasedio/webapp/tree/issue%2318

note tel filter shows in local, but Auth stores data as int'l (eg, +19025551234). Currently assumes canadian number (should be fine for US numbers as well)

adds phoneformat.js bower dependency (see https://github.com/albeebe/phoneformat.js)