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).
This commit is contained in:
Lauryn Menard 2023-02-27 19:37:44 +01:00 committed by Tim Abbott
parent 8eaac945b2
commit 514e5b990e
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{% extends "zerver/portico_signup.html" %}
{% block title %}
<title>{{ _("Password successfully reset") }} | Zulip</title>
<title>{{ _(" New password successfully set") }} | Zulip</title>
{% endblock %}
{% block portico_content %}
@ -10,7 +10,7 @@
<div class="inline-block">
<div class="get-started">
<h1>{{ _("We've reset your password!") }}</h1>
<h1>{{ _("You've set a new password!") }}</h1>
</div>
<div class="white-box">

View File

@ -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)