Phone verification
JoomSMS has two ways to check that a phone number belongs to the person who enters it. Both send a 5-character code by SMS that the person types back.
Double opt-in for subscriptions (recommended)
The site's Subscribe page asks new subscribers to confirm their number with a code before they receive anything. This is the safe way to confirm numbers in JoomSMS 6.5.7. See Subscription forms.
Verification at registration and checkout (not recommended in 6.5.7)
The JoomSMS : Double optin verification feature plugin replaces the submit button of Joomla's registration form, and of the Community Builder, JomSocial, HikaShop and VirtueMart forms, with a phone field and a Send a code button. The configuration lists one checkbox per form under Require Confirmation (double opt-in) on the Interface tab.
In JoomSMS 6.5.7 this plugin does not work as a check and has known security problems:
- A registration can go through without a valid code.
- Visitors can make your site send codes to any number, which costs you SMS.
- The verified number is not saved to the new Joomla account.
- The Send a code button needs jQuery, which Joomla 4, 5 and 6 site templates do not load by default.
Keep the plugin disabled, and leave the checkboxes for Joomla, VirtueMart, HikaShop, JomSocial and Community Builder unticked. If you need verified phone numbers, let users subscribe through the Subscribe page with double opt-in.
The code message
The code is sent with the message "activation_optin" that the install creates, with the text {joomsms:user_activationcode}. On the Interface tab, Edit the SMS next to Require Confirmation (double opt-in) opens it. You can add your own words around the tag, for example "Your code for example.com: {joomsms:user_activationcode}". It is sent with the sender profile of that message, or the default sender profile when it has none, and the tag is only replaced when JoomSMS Tag : JoomSMS User Informations is enabled.