rdegges/django-twilio

Confirming Cellphone numbers via sms?

Opened this issue · 1 comments

Hey guys,

thanks for this great package. After reading the documentation, it's not clear to me if there's a functionality which lets me confirm my users' cellphone numbers.

Eg. someone fills in their cellphone number, django-twilio sends a sms with a verification code, ux shows a form to fill in the code and confirm the number

If this functionality is not included do you happen to know another package offering this or more suited for implementing this? I've looked at quite some packages and django-twilio still looks to me like the closest for this.

jheld commented

Hello! Thanks for asking.

We have no direct support for this feature in the codebase. There are some integrations that we have taken on to make the project more suitable for real world use. As such, it's possible we could make this an optional enhancement, too. I'm unsure of the exact mechanisms that would be needed to make this generic enough but still useful.

I suppose we could provide a base template for this. As far as the code generation is concerned, that could be a random 5 character string, or possibly provided by the general application.

I haven't done any research into existing solutions. However twilio has these docs: https://www.twilio.com/blog/2018/02/build-simple-phone-verification-with-twilio-python-and-authy.html

Can you let me know your thoughts? Trying to see if this is something we can/should build.