Skip to main content

An extension of django rest framework, providing a password reset strategy

Project description

# Django Rest Password Reset
This django app provides a password reset strategy for django rest framework, where users can request password
reset tokens via their registered e-mail address.

## How to use

Django settings file:


Django url settings:
from django.conf.urls import url, include

urlpatterns = [
url(r'^api/password_reset/', include('django_rest_passwordreset.urls', namespace='password_reset')),

The following endpoints are provided:

* `reset_password` - request a reset password token by using the ``email`` parameter
* `reset_password/confirm` - using a valid ``token``, the users password is set to the provided ``password``

## Signals

* ``reset_password_token_created(reset_password_token)`` Fired when a reset password token is generated
* ``pre_password_reset(user)`` - fired just before a password is being reset
* ``post_password_reset(user)`` - fired after a password has been reset

## Tests

See folder [tests/](tests/). Basically, all endpoints are covered with multiple
unit tests.

Use this code snippet to run tests:
pip install -r requirements_test.txt
python install
cd tests
python test

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-rest-passwordreset, version 0.9.4
Filename, size File type Python version Upload date Hashes
Filename, size django-rest-passwordreset-0.9.4.tar.gz (9.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page