M
M
mr_drinkens892015-11-17 16:15:08
Django
mr_drinkens89, 2015-11-17 16:15:08

How to do sms verification in Django?

Tell me, knowledgeable people.
The bottom line is this: to view resources, we want to make closed access, by registering for a phone number. That is, the user enters his number, he receives an SMS, we activate it and open access. Only for 1 time (do not send SMS again).
Where to dig? if any batteries?
Googled this thing https://www.twilio.com/
Is it true?
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fantom0005, 2015-11-17
@fantom0005

For this you need a service that sends SMS notifications. For example: smsc.ru. They already have a ready-made api for Python2/3.
In the user model, you need to create an additional field that will contain the verification code. And when registering, we generate a code, send it via SMS service. The user enters this code, if the codes match, the phone belongs to the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question