This commit is contained in:
Martin Pépin 2017-04-26 20:36:22 +01:00
parent 7a4a836d6e
commit 704cd3e0fc
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,2 @@
from django.db import models
from django.contrib.auth.models import User

View file

@ -53,11 +53,14 @@ urlpatterns = [
Home.as_view(),
name='password_reset_done'),
# PASS RESET CONFIRM
url('^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
url('^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/'
'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
auth_views.password_reset_confirm,
{
'template_name': 'user/user_form.html',
'post_reset_redirect': reverse_lazy('user:password_reset_complete'),
'post_reset_redirect': reverse_lazy(
'user:password_reset_complete'
),
'extra_context': {
'page_title': 'Changer de mot de passe',
'button': 'Changer'