A Django auth backend that works with email or username
Project description
Yummy Email Or Username Insensitive Auth model backend for Django
Instructions
pip install django-yeouia
- Add
AUTHENTICATION_BACKENDS = ['yeouia.backends.YummyEmailOrUsernameInsensitiveAuth']
to yoursettings.py
- Enjoy
Requirements
Tested for
- Python 3.4, 3.5, 3.6, 3.7
- Django 2.0, 2.1
May work otherwise, but you should run tests :P
Case Insensitive ?
Django's default auth username is not case insensitive. (See #2273 and #25617)
But… Who cares ?
This backend tries:
- username, case sensitive
- username, case insensitive
- email, case insensitive
And follows #20760.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-yeouia-2.0.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for django_yeouia-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b168d47aed43eb8a6d5d0be2f57a5eef6a934118117beed76988fcc57c154af |
|
MD5 | a9d8805267800a1371ba9b376562f65b |
|
BLAKE2b-256 | e6d02e2424472830caf9a7d9c0382bd45786dacfcb8513f59a24f22b69b220dd |