From: Stephen Finucane Date: Tue, 19 Jul 2022 14:06:36 +0000 (+0100) Subject: views: Redirect to login on password reset X-Git-Tag: v3.2.0~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a6e38d16ecda9cecc98c15c4c611dd8b69b6271;p=thirdparty%2Fpatchwork.git views: Redirect to login on password reset There's no need for a separate reset confirmation page. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/urls.py b/patchwork/urls.py index f4d67aa7..bd48a4fd 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -145,14 +145,11 @@ urlpatterns = [ ), path( 'user/password-reset///', - auth_views.PasswordResetConfirmView.as_view(), + auth_views.PasswordResetConfirmView.as_view( + success_url=reverse_lazy('auth_login'), + ), name='password_reset_confirm', ), - path( - 'user/password-reset/complete/', - auth_views.PasswordResetCompleteView.as_view(), - name='password_reset_complete', - ), # login/logout path( 'user/login/', diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html deleted file mode 100644 index 8678ee89..00000000 --- a/templates/registration/password_reset_complete.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Password reset completed{% endblock %} -{% block heading %}Password reset completed{% endblock %} - -{% block body %} -

Your password has been set. You may go ahead and log in now.

-{% endblock %}