Allows authentication with either a username or an email address.
Project description
This package allows to authenticate a user with either a username an email address, or both. 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
Common issues
We’ve been reported about users having problems with MySQL and dual-authentication case sensitive option. This is because mysql is case-insensitive by default. So, if you need case sensitive authentication, probably you’d prefer avoid this database engine.
Changelog
0.5
New feature: Allows authentication using username, email, or both.
New feature: Allows enable or disable case sensitive for username and/or email.
Fixed: Bug where users cannot login if exists a username equal to an email address.
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.
Source Distribution
Hashes for django-dual-authentication-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99682e4030648e301edbf48d6c8864950005206ebfd47a6810ec1244818743fa |
|
MD5 | 2ed810cd4ce6fde072ee7a00528fb920 |
|
BLAKE2b-256 | 1f7cdeefc5ab15382e606acf2083fd92a229ea897196b6f8bfcb3c579e4ca719 |