Skip to main content

A Django auth backend that works with email or username

Project description

Yummy Email Or Username Insensitive Auth model backend for Django

Build Status Coverage Status

Instructions

  • pip install django-yeouia
  • Add AUTHENTICATION_BACKENDS = ['yeouia.backends.YummyEmailOrUsernameInsensitiveAuth'] to your settings.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:

  1. username, case sensitive
  2. username, case insensitive
  3. email, case insensitive

And follows #20760.

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-yeouia-2.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

django_yeouia-2.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file django-yeouia-2.0.0.tar.gz.

File metadata

  • Download URL: django-yeouia-2.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django-yeouia-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c6843be54720d2c953de7a4bfecc1b4cfb07e067107c28d9e7c53178d25cda18
MD5 8e23f64380431244016c0a54189d57d4
BLAKE2b-256 f57db68852cf6a373a8bc2631067b4d29b7219646ea80d49c95eb90767b586a8

See more details on using hashes here.

File details

Details for the file django_yeouia-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_yeouia-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_yeouia-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b168d47aed43eb8a6d5d0be2f57a5eef6a934118117beed76988fcc57c154af
MD5 a9d8805267800a1371ba9b376562f65b
BLAKE2b-256 e6d02e2424472830caf9a7d9c0382bd45786dacfcb8513f59a24f22b69b220dd

See more details on using hashes here.

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