Skip to main content

A Django app that allows users to authenticate using email, phone number or username.

Project description

# Introduction #

A Django app that allows users to authenticate using email, phone number or username.


## Installation ##


1. Install package:

pip install django_mobile_auth

2. Add mobile_auth app to INSTALLED_APPS in your django settings.py:

INSTALLED_APPS = (
'mobile_auth',
...
)

Note: Add it before django.contrib.auth if you want to use the custom createsuperuser command with support to email and phone.

3. On you django settings, set the AUTH_USER_MODEL and AUTHENTICATION_BACKENDS to:

AUTH_USER_MODEL = 'mobile_auth.MobileUser'
AUTHENTICATION_BACKENDS = ['mobile_auth.backends.MobileAuthBackend',]

Project details


Download files

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

Source Distribution

django_mobile_auth-0.2.6.tar.gz (8.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page