fix: correct wording in password reset message for consistency
This commit is contained in:
parent
667787cb47
commit
71613d6fc8
2 changed files with 5 additions and 3 deletions
|
|
@ -431,7 +431,7 @@ class TestUser(IntegrationTestCase):
|
|||
update_password(old_password, old_password=new_password)
|
||||
self.assertEqual(
|
||||
frappe.message_log[0].get("message"),
|
||||
"If this email is registered with us, we’ve sent password reset instructions to it. Please check your inbox.",
|
||||
"If this email is registered with us, we have sent password reset instructions to it. Please check your inbox.",
|
||||
)
|
||||
|
||||
sendmail.assert_called_once()
|
||||
|
|
@ -440,7 +440,7 @@ class TestUser(IntegrationTestCase):
|
|||
# Constant-response guarantee: every path — existing user, Administrator,
|
||||
# and non-existent user — must return None AND enqueue the same generic
|
||||
# message, so callers cannot distinguish between them.
|
||||
_GENERIC_MSG = "If this email is registered with us, we’ve sent password reset instructions to it. Please check your inbox."
|
||||
_GENERIC_MSG = "If this email is registered with us, we have sent password reset instructions to it. Please check your inbox."
|
||||
|
||||
frappe.clear_messages()
|
||||
self.assertIsNone(reset_password(user="test2@example.com"))
|
||||
|
|
|
|||
|
|
@ -1175,7 +1175,9 @@ def reset_password(user: str) -> None:
|
|||
frappe.log_error(title="Password reset failed unexpectedly", message=frappe.get_traceback())
|
||||
|
||||
frappe.msgprint(
|
||||
msg=_("If this email is registered with us, we’ve sent password reset instructions to it. Please check your inbox."),
|
||||
msg=_(
|
||||
"If this email is registered with us, we have sent password reset instructions to it. Please check your inbox."
|
||||
),
|
||||
title=_("Password Reset"),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue