On my site, after registering their account, I want users to optionally be able to go to their account page, input a phone number, and then verify that number by SMS. When they verify the phone number, I want to award a special role (ideally via Rules).
It seems like there are several modules that might be able to do this:
- Two-factor authentication-- this supports SMS with the TFA Basic plugins, but I don't want to use SMS for authentication, just once to verify the number.
- Twilio-- this module has user phone number verification, but it does it in a special database table (not a Drupal field) and does not have a rules event for "when a number is verified."
- SMS Framework-- this module contains a submodule ("SMS Framework Users") for phone number verification, but it only works on registration; there is no option to register a number later (and in my case, I do not want to collect numbers on registration; I want to collect numbers later optionally).