Skip to content
It is short methodology to implement the OTP Functionality in django rest services
Python
Branch: master
Clone or download

Latest commit

Latest commit 2ea5d1a Feb 22, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
otp
verification Completed the initial code Feb 22, 2020
.gitignore
README.md
manage.py

README.md

OTP-in-django

Quick and simple technique to implement the OTP functionality in your Django Project.

Python Packages required: pyotp, base64, django, django-rest-framework

API Calls

GET

This is to register the mobile number into the database and generate OTP.

http://127.0.0.1:8000/verify/9999999999/

POST

This is to verify the mobile number using OTP.

http://127.0.0.1:8000/verify/9999999999/

Data:

   {
    "otp":040301
   }
You can’t perform that action at this time.