Commit 46315622 authored by cermak's avatar cermak
Browse files

[FIX] Password reset and activation link were not working

parent 3f6fa887
......@@ -33,28 +33,26 @@ urlpatterns = [
url(r'^edit-profile/$', views.ProfileEditView.as_view(), name='app_edit_profile'),
url(r'^edit-user/$', views.UserUpdateView.as_view(), name='app_edit_user'),
url(r'^password/$', views.change_password, name='change_password'),
url(r'^password_reset/$', auth_views.PasswordResetView.as_view(form_class=app.forms.CrispyPasswordReset), name='password_reset'),
url(r'^password_reset/done/$', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),
url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
auth_views.PasswordResetConfirmView.as_view(form_class=app.forms.CrispySetPassword), name='password_reset_confirm'),
url(r'^reset/done/$', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
url(r'^login',
path('password_reset/', auth_views.PasswordResetView.as_view(form_class=app.forms.CrispyPasswordReset), name='password_reset'),
path('password_reset/done/', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),
path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(form_class=app.forms.CrispySetPassword), name='password_reset_confirm'),
path('reset/done/', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
path('login/',
auth_views.LoginView.as_view(),
{
'template_name': 'app/login.html',
'authentication_form': app.forms.BootstrapAuthenticationForm,
},
name='login'),
url(r'^logout',
path('logout/',
auth_views.LogoutView.as_view(),
{
'next_page': '/login/',
},
name='logout'),
url(r'^signup/$', app.views.signup, name='signup'),
url(r'^resend/(?P<userpk>\S+)/$', app.views.resend, name='resend'),
url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
app.views.activate, name='activate'),
path('signup/', app.views.signup, name='signup'),
path('resend/<userpk>/', app.views.resend, name='resend'),
path('activate/<uidb64>/<token>/', app.views.activate, name='activate'),
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
......
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