No project description provided
Project description
Django’s auth.User model uses a username field to uniquely identify a user. django-simple-authentication uniquely identifies users with an email address instead, removing the username field altogether.
Additionally, django-simple-authentication offers a feature that forces users to change their password the next time they log in. This can be done by setting simple_authentication.User.force_password_change to True. The ForcePasswordChangeMiddleware must be installed for this feature to work properly.
Quick-start
Install: pip install django-simple-authentication.
Add: simple_authentication to INSTALLED_APPS.
Add: AUTH_USER_MODEL = 'simple_authentication'.
Add: simple_authentication.middleware.ForcePasswordChanceMiddleware to MIDDLEWARE.
Make migrations: python manage.py makemigrations simple_authentication.
Apply migrations: python manage.py migrate simple_authentication.
Compatibility
django_simple_authentication has been tested on Django versions >= 2.0. It may work without issue on earlier versions of Django (or Python), but this is not officially supported.
Changelog
Version |
Description |
---|---|
0.1.1 |
Ensure migrations are excluded from the PyPI distribution. |
0.1 |
Initial version. |
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
File details
Details for the file django-simple-authentication-0.1.1.tar.gz
.
File metadata
- Download URL: django-simple-authentication-0.1.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc1008b19e348d6635848604ee3aa8bd1bf8d2839660e65ff6d8d1443611f5dd |
|
MD5 | 9030108901b7cc25af0dd9e7e74110d6 |
|
BLAKE2b-256 | dfe8a8d2d0327b3f2c3d9a27bfa9c95cb1b6a8495606337c5dcb854df795408e |