Skip to main content

Django Phone Login: Login with OTP

Project description

Django Phone Login

This login is basically used to login via OTP using phone_number as the new field instead of using email or username as the login.

How does it work?

We use django-sendsms to the phone and OTP and Verify it. This way you can use your favorite SMS Service. You can ask the user for phone_number using Forms as authentication and login in any web browser. By sending the OTP. Second, you can use Django Rest Framework and login like how Whatsapp, Viber and many login works.


Add the Below

urlpatterns = [
    url(r'^otp/', include('phone_login.urls', namespace='phone_login'),),

Make the following changes in the

    ...  # Make sure to include the default installed apps here.



AUTH_USER_MODEL = 'phone_login.CustomUser'



Coming Up…

Customizable Fields in Settings.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-phone-login, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_phone_login-1.0-py3-none-any.whl (24.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-phone-login-1.0.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page