Activate account with OTP through mobile SMS

Activate account with OTP through mobile SMS

We Blend Web -
回帖数: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. 

平均分:Useful (1)
回复We Blend Web

Re: Activate account with OTP through mobile SMS

Dani Palou -
Core developers的头像 Moodle HQ的头像 Peer reviewers的头像 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
回复We Blend Web

Re: Activate account with OTP through mobile SMS

Deon Visser -

Hi

Did you ever find a solution?

I see there are many similar requests but no solution.

回复We Blend Web

Re: Activate account with OTP through mobile SMS

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.
回复Juno Sprite

Re: Activate account with OTP through mobile SMS

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!
回复Juno Sprite

Re: Activate account with OTP through mobile SMS

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. 

回复Juno Sprite

Re: Activate account with OTP through mobile SMS

Gita Gosavi -

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

回复Juno Sprite

Re: Activate account with OTP through mobile SMS

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.
回复Juno Sprite

Re: Activate account with OTP through mobile SMS

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.