[Answer]-Is there a way to change the password_reset_confirm link sent by django?

1👍

Just redefine the url with the name 'password_reset_confirm' after the inclusion of django.contrib.auth.urls. If there is several urls with the same name then the URL dispatcher uses the last occurrence:

from django.contrib.auth import views as auth_views

urlpatterns = patterns('',
    ...
    url(r'^accounts/', include('django.contrib.auth.urls')),
    url(r'^passwordResetConfirm/(?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,
                              name='password_reset_confirm'),
)

Leave a comment