Skip to content

Commit

Permalink
Rename reset-password template folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Nov 21, 2024
1 parent cbbcd3e commit 879cf07
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/users/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
path("logout/", auth_views.LogoutView.as_view(), name="logout"),
path('reset-password/', ResetPasswordView.as_view(), name='reset-password'),
path('password-reset-confirm/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(template_name='users/html/password_reset_confirm.jinja2'),
auth_views.PasswordResetConfirmView.as_view(template_name='users/reset-password/password_reset_confirm.jinja2'),
name='password_reset_confirm'),
path('password-reset-complete/',
auth_views.PasswordResetCompleteView.as_view(template_name='users/html/password_reset_complete.jinja2'),
auth_views.PasswordResetCompleteView.as_view(template_name='users/reset-password/password_reset_complete.jinja2'),
name='password_reset_complete'),
# path("recover/", recover_password, name="recover"),
# path("recover-code/", recover_code, name="recover-code"),
Expand Down
6 changes: 3 additions & 3 deletions src/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def signup(request):


class ResetPasswordView(SuccessMessageMixin, PasswordResetView):
template_name = 'users/html/password_reset.jinja2'
email_template_name = 'users/html/password_reset_email.html'
subject_template_name = 'users/html/password_reset_subject.txt'
template_name = 'users/reset-password/password_reset.jinja2'
email_template_name = 'users/reset-password/password_reset_email.html'
subject_template_name = 'users/reset-password/password_reset_subject.txt'
success_message = _("We've emailed you instructions for setting your password, " \
"if an account exists with the email you entered. You should receive them shortly." \
" If you don't receive an email, " \
Expand Down

0 comments on commit 879cf07

Please sign in to comment.