Page 1 of 1

verifying phone number while registration by sms

Posted: Thu Apr 18, 2019 10:07 am
by kiasati
Hi,

I want to build a plugin that sends a confirmation code by SMS to the user while registration.

How can I do this?
is there any plugin for Joomla to do so?
if not, have you guys any idea how to design this?
is it better to be a plugin or a component?

Re: verifying phone number while registration by sms

Posted: Thu Apr 18, 2019 11:47 pm
by AMurray
(I think) you mean 2-factor authentication, which is a built-in Joomla feature.

https://docs.joomla.org/J3.x:Two_Factor_Authentication

This uses the Google Authenticator app which generates the random codes every 30 seconds, or YubiKey which requires a hardware token (plugged into a USB drive) is the alternative method.

It doesn't have the code sent to SMS feature.

Otherwise, search "two factor authentication" or "2FA" in the extensions directory. Two ideas to get you started

Akeeba Login Guard is another that you might want to consider It also does the codes to SMS which the Joomla built in plugin doesn't do.

Re: verifying phone number while registration by sms

Posted: Fri Apr 19, 2019 2:32 am
by AMurray
On giving your question a second read I think I may have been wrong above, what you were after is something like this: https://extensions.joomla.org/extension ... ms-verify/
Note this is a paid (not free) extension.

There's this one too, which is a pre-registration email validation
https://extensions.joomla.org/extension ... alidation/

**also note both of these don't seem to have had any recent development, their JED listings are a few years old**

Re: verifying phone number while registration by sms

Posted: Fri Apr 19, 2019 6:42 am
by Per Yngve Berg
The Plugin have to process the onUserBeforeSave event.

https://docs.joomla.org/Plugin/Events/U ... BeforeSave