Activate account with OTP through mobile SMS

Activate account with OTP through mobile SMS

by We Blend Web -
Number of replies: 8

Integrate Twillio or Msg91 for OTP verification.

Students generally don’t have email in rural areas. Instead of using email verification we can verify their mobile number by OTP and take them to the dashboard. After that they edit their profile and add email if required.

That will help quick user registration. 

Average of ratings:Useful (1)
In reply to We Blend Web

Re: Activate account with OTP through mobile SMS

by Dani Palou -
Immàgine de Core developers Immàgine de Moodle HQ Immàgine de Peer reviewers Immàgine de Plugin developers
Hi,

do you know if this is supported in Moodle web with some plugin? My advice would be to support this in Moodle web (not in the Moodle app) because it's way easier to customize. Students can create their account using a browser in the phone, and when the account is created then they can login in the app with their username and password.

Cheers,
Dani
In reply to We Blend Web

Re: Activate account with OTP through mobile SMS

by Deon Visser -

Hi

Did you ever find a solution?

I see there are many similar requests but no solution.

In reply to We Blend Web

Re: Activate account with OTP through mobile SMS

by Juno Sprite -
Yo yo, I'm making a plugin for this: https://github.com/Junosprite007/tool_phoneverification

I feel like a lot of companies have plugins for this, but they're proprietary. I don't like that, so even though I'm getting paid to make the plugin, it's goin' on GitHub for all to use! That's my contribution to Moodle for given us all an awesome free system. Feel free to help if you know how to code. Or tell me where to find one that's already finished.

It currently only supports the Infobip texting service, but Twilio and AWS SNS integration doesn't need to be that far off if that's what people want. Ideally, I'll have it integrate with the top 10 most popular texting services. It's starting as an OTP verification service, but morphing into a schedule notification service later on.
Average of ratings:Useful (1)
In reply to Juno Sprite

Re: Activate account with OTP through mobile SMS

by Juan Heredia -
Hello Juno, thank you very much for your contribution! I'm looking for a solution for an OTP in Moodle and after a lot of looking, this is the light at the end of the tunnel.
I will try your plugin. If you need/want to know about my experience with your plugin just let me know.

Greetings!
In reply to Juno Sprite

Re: Activate account with OTP through mobile SMS

by Bernard Nilantha -

I think this is good solution. But can you explain how to use this ?.. I tried couldn't find way to implement it. 

In reply to Juno Sprite

Re: Activate account with OTP through mobile SMS

by Gita Gosavi -

Good to know Juno! Just landed here at the right moment. Is this completely developed now and ready for usage?

In reply to Juno Sprite

Re: Activate account with OTP through mobile SMS

by Juno Sprite -
To my responders, it's great to see such interest and support! I could definitely make better instructions on how to use this.

I actually only recently got this plugin fully working, but then I ended up merging it with a much larger "Equipment" plugin I'm working on (which is also free and open source, though not finished yet).

The big thing that kept me from making this plugin usable for my use-case was that I wanted users to be redirected to the phone verification page if their phone had not yet been verified, but this should not happen with every user; only with users assigned with the role of "Parent" to another user, i.e. their students. Parents need to verify their phones; students do not. Thinking long-term for my company, theoretically, parents could be students and students could be parents. Because of this possibility, I had to figure out how to differentiate different types of user accounts. I found one way, though it's not the best.

Anyway, the plugin should actually still be working, but users must go to the phone verification page to verify their phones manually. My Equipment plugin may be worth checking out when it's done, but it's a big boy, and I'm only 1 person, so it'll have a good amount of flaws, and some dirty code.
In reply to Juno Sprite

Re: Activate account with OTP through mobile SMS

by Gita Gosavi -
Ok, thank you for letting us know and will wait for the Equipment plugin..meantime all the very best for your further development.