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',]


## Releases ##

- 0.2.7: Replace fields first_name and last_name with just name. The migration were reset back to 001. Please check it before updating.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_mobile_auth-0.2.8.tar.gz (8.2 kB) Copy SHA256 hash SHA256 Source None Jul 16, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page