Git Product home page Git Product logo

django-simple-authentication's Introduction

django-simple-authentication

travis codacy coverage pypi

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

  1. Install: pip install django-simple-authentication.
  2. Add: simple_authentication to INSTALLED_APPS.
  3. Add: AUTH_USER_MODEL = 'simple_authentication'.
  4. Add: simple_authentication.middleware.ForcePasswordChanceMiddleware to MIDDLEWARE.
  5. Make migrations: python manage.py makemigrations simple_authentication.
  6. 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.2 Improved unit test coverage (up to 76%).
0.1.1 Ensure migrations are excluded from the PyPI distribution.
0.1 Initial version.

django-simple-authentication's People

Contributors

teapow avatar

Stargazers

 avatar  avatar

django-simple-authentication's Issues

Integrate linting tool

While coding standards are generally good across the project, proper linting will go a long way to ensure it's current state is upheld going forward.

This should be part of the build process within Travis.

Improve unit tests: forms

Currently, there are no unit tests for the forms module. These need writing to bring test coverage up.

Improve unit tests: middleware

There are currently no unit tests for the middleware module, though it's being reported as 100% covered because of how Django loads it's middleware classes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.