From 8eec17f1b3bf80043450fb0daae2c330d19841fe Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Thu, 1 Feb 2018 17:50:16 +0300 Subject: [PATCH 1/2] LIL-149 Add password reset complete template --- .../auth/password_reset_complete.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 apps/auth/templates/auth/password_reset_complete.html diff --git a/apps/auth/templates/auth/password_reset_complete.html b/apps/auth/templates/auth/password_reset_complete.html new file mode 100644 index 00000000..632142ba --- /dev/null +++ b/apps/auth/templates/auth/password_reset_complete.html @@ -0,0 +1,19 @@ +{% extends "templates/lilcity/index.html" %} +{% load static %} + +{% block content %} +
+
+
+
Вы успешно сменили пароль.
+
+
+
+
+
+

+ Воспользуйтесь формой входа. +

+
+
+{% endblock content %} \ No newline at end of file From 12cc98abda608240c07640a7226500c8f92b0345 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Thu, 1 Feb 2018 17:50:37 +0300 Subject: [PATCH 2/2] LIL-149 Fix reset complete view --- apps/auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/auth/views.py b/apps/auth/views.py index 37bab7b3..03bafabb 100644 --- a/apps/auth/views.py +++ b/apps/auth/views.py @@ -125,7 +125,7 @@ class PasswordResetConfirmView(views.PasswordResetConfirmView): class PasswordResetComplete(views.PasswordResetCompleteView): - pass + template_name = 'auth/password_reset_complete.html' @method_decorator(csrf_exempt, name="dispatch")