Skip to main content

Allows authentication with either a username or an email address.

Project description

This package allows to authenticate a user with either a username or an email address. It overrides Django authenticate method, so it should work in almost any case of use, without touch anything else. For support and aditional documentation, in case you need it, please visit our Github repository .

Installation

Run

pip install django-dual-authentication

Then, add this line to your settings.py

AUTHENTICATION_BACKENDS = [‘django-dual-authentication.backends.DualAuthentication’]

Supported versions

  • Python >= 2.7
  • Django >= 1.5

Changelog

0.4

  • Fixed bug where usernames containing ‘@’ can only login using email.
  • Fixed testproject.

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-dual-authentication, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size django-dual-authentication-0.4.0.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page