Commit 290d42a0 authored by Flavio TARSETTI's avatar Flavio TARSETTI

Merge branch '583_fix_password_reset' into 'master'

Update the password reset URL path to match Django's

Closes #583

See merge request !414
parents a55eabdf 6aec03fa
Pipeline #46968 passed with stages
in 18 minutes and 48 seconds
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
from django.conf import settings from django.conf import settings
from django.contrib.auth import views as auth_views from django.contrib.auth import views as auth_views
from django.urls import path from django.urls import path
from django.urls import re_path
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from . import views from . import views
...@@ -103,8 +102,8 @@ urlpatterns = [ ...@@ -103,8 +102,8 @@ urlpatterns = [
), ),
name="password_reset_done", name="password_reset_done",
), ),
re_path( path(
r"^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$", "reset/<uidb64>/<token>/",
auth_views.PasswordResetConfirmView.as_view( auth_views.PasswordResetConfirmView.as_view(
template_name="registration/password-reset-confirm.html" template_name="registration/password-reset-confirm.html"
), ),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment