Fixed #56: invalidate tokens on password change, also added change password form

This commit is contained in:
Eliot Berriot 2017-12-26 15:56:04 +01:00
parent a8a37603be
commit 3c08722e92
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
11 changed files with 195 additions and 3 deletions

View file

@ -2,11 +2,15 @@ from django.views.generic import TemplateView
from django.conf.urls import url
from rest_auth.registration.views import VerifyEmailView
from rest_auth.views import PasswordChangeView
from .views import RegisterView
urlpatterns = [
url(r'^$', RegisterView.as_view(), name='rest_register'),
url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
url(r'^change-password/$', PasswordChangeView.as_view(), name='change_password'),
# This url is used by django-allauth and empty TemplateView is
# defined just to allow reverse() call inside app, for example when email