From 88675bc8079ecc8b5f1a6ca8de71f9ae391c40f4 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 19 Oct 2023 13:11:15 +0200 Subject: [PATCH] fix reset password --- .../admin/registration => auth}/password_reset_email.html | 0 .../admin/registration => auth}/password_reset_email.txt | 0 .../registration => auth}/password_reset_subject.txt | 0 idhub/urls.py | 8 ++++---- 4 files changed, 4 insertions(+), 4 deletions(-) rename idhub/templates/{idhub/admin/registration => auth}/password_reset_email.html (100%) rename idhub/templates/{idhub/admin/registration => auth}/password_reset_email.txt (100%) rename idhub/templates/{idhub/admin/registration => auth}/password_reset_subject.txt (100%) diff --git a/idhub/templates/idhub/admin/registration/password_reset_email.html b/idhub/templates/auth/password_reset_email.html similarity index 100% rename from idhub/templates/idhub/admin/registration/password_reset_email.html rename to idhub/templates/auth/password_reset_email.html diff --git a/idhub/templates/idhub/admin/registration/password_reset_email.txt b/idhub/templates/auth/password_reset_email.txt similarity index 100% rename from idhub/templates/idhub/admin/registration/password_reset_email.txt rename to idhub/templates/auth/password_reset_email.txt diff --git a/idhub/templates/idhub/admin/registration/password_reset_subject.txt b/idhub/templates/auth/password_reset_subject.txt similarity index 100% rename from idhub/templates/idhub/admin/registration/password_reset_subject.txt rename to idhub/templates/auth/password_reset_subject.txt diff --git a/idhub/urls.py b/idhub/urls.py index 61e8e99..6254243 100644 --- a/idhub/urls.py +++ b/idhub/urls.py @@ -31,10 +31,10 @@ urlpatterns = [ path('auth/password_reset/', auth_views.PasswordResetView.as_view( template_name='auth/password_reset.html', - email_template_name='auth/registration/password_reset_email.txt', - html_email_template_name='auth/registration/password_reset_email.html', - subject_template_name='auth/registration/password_reset_subject.txt', - success_url=reverse_lazy('auth:password_reset_done') + email_template_name='auth/password_reset_email.txt', + html_email_template_name='auth/password_reset_email.html', + subject_template_name='auth/password_reset_subject.txt', + success_url=reverse_lazy('idhub:password_reset_done') ), name='password_reset' ),