From 514e5b990e8d52d61e9e71d4c1b3c97d8b6e74ff Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Mon, 27 Feb 2023 19:37:44 +0100 Subject: [PATCH] templates: Update `reset_done.html` page text and title. Updates the text and title used when the password reset done page to work for situations where the user is resetting a forgotten password and for situation where the user is setting a password for the first time (e.g. SSO login, demo organizations). --- templates/zerver/reset_done.html | 4 ++-- zerver/tests/test_signup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/zerver/reset_done.html b/templates/zerver/reset_done.html index 18a5b1008f..72bcb1bc38 100644 --- a/templates/zerver/reset_done.html +++ b/templates/zerver/reset_done.html @@ -1,7 +1,7 @@ {% extends "zerver/portico_signup.html" %} {% block title %} -{{ _("Password successfully reset") }} | Zulip +{{ _(" New password successfully set") }} | Zulip {% endblock %} {% block portico_content %} @@ -10,7 +10,7 @@
-

{{ _("We've reset your password!") }}

+

{{ _("You've set a new password!") }}

diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index 567604afc4..f3c5a2ee5d 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -772,7 +772,7 @@ class PasswordResetTest(ZulipTestCase): self.assert_in_success_response(["Check your email"], result) result = self.client_get("/accounts/password/done/") - self.assert_in_success_response(["We've reset your password!"], result) + self.assert_in_success_response(["You've set a new password!"], result) result = self.client_get("/accounts/send_confirm/?email=alice@example.com") self.assert_in_success_response(["/accounts/home/"], result)