]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
views: Redirect to login on password reset
authorStephen Finucane <stephen@that.guru>
Tue, 19 Jul 2022 14:06:36 +0000 (15:06 +0100)
committerStephen Finucane <stephen@that.guru>
Sun, 2 Oct 2022 19:59:44 +0000 (20:59 +0100)
There's no need for a separate reset confirmation page.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/urls.py
templates/registration/password_reset_complete.html [deleted file]

index f4d67aa707423c5dad33ce1e31dec9bfbcf101f4..bd48a4fd34128b64325d5e5c9c32815022e48a7d 100644 (file)
@@ -145,14 +145,11 @@ urlpatterns = [
     ),
     path(
         'user/password-reset/<uidb64>/<token>/',
-        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 (file)
index 8678ee8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Password reset completed{% endblock %}
-{% block heading %}Password reset completed{% endblock %}
-
-{% block body %}
-<p>Your password has been set. You may go ahead and log in now.</p>
-{% endblock %}