Giter VIP home page Giter VIP logo

django-admin-reset's Introduction

Password reset for the Django admin interface

This package provides views, to use the built-in Django password reset functionality from inside the admin interface.

Features:

  • Add a link to the top of the user change form, that leads to a new page, containing the link for the password reset.
  • Remove the features to manually change the users' passwords from the admin interface (but see note below).
    • Remove the change password link from the user forms.
    • Remove the password inputs from the user add form.

Note

It's still possible, to manually change the users' passwords by going to the /admin/auth/user/<uid>/password/ page. Only the links, pointing to this page are removed.

Installation

The django-admin-reset package can be installed with pip:

pip install django-admin-reset

Usage

To use this package, add it to INSTALLED_APPS, in the settings.py file:

INSTALLED_APPS = [
    ...
    'django_admin_reset',
    ...
]

Validation time

The password reset links/tokens, generated by this package, are using the built-in Django password reset functionality, and so respect the PASSWORD_RESET_TIMEOUT_DAYS setting.

Compatibility

This package changes the default user admin class, so it may be incompatible with other packages, that are also changing it.

Compatible Django and Python versions:

Django version Python versions
2.2 LTS 3.5, 3.6, 3.7, 3.8
3.0 3.6, 3.7, 3.8

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.