Skip to content

Commit

Permalink
Fix the password reset issue for django update
Browse files Browse the repository at this point in the history
  • Loading branch information
Razvan Nesiu committed Jun 21, 2019
1 parent f19694d commit 68722d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dispatch/admin/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.urls import re_path
from django.contrib.auth.views import PasswordResetConfirmView, PasswordResetCompleteView
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.shortcuts import render_to_response
from dispatch.admin import views
Expand All @@ -18,7 +18,7 @@ def admin(request):
urlpatterns = [
re_path(r'signup/(?P<uuid>[0-9a-f-]+)/', views.signup, name='dispatch-signup'),
re_path(r'reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})',
PasswordResetConfirmView, name='password_reset_confirm'),
re_path(r'reset/done', PasswordResetCompleteView, name='password_reset_complete'),
auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
re_path(r'reset/done', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
re_path(r'.*', admin, name='dispatch-admin')
]

0 comments on commit 68722d0

Please sign in to comment.