auth: Tweak invalid credentials error message.

We decided this is the better string to use.
This commit is contained in:
Mateusz Mandera
2024-10-24 21:47:47 +02:00
committed by Tim Abbott
parent 94a86d4ac2
commit 481ef24b53
3 changed files with 4 additions and 4 deletions

View File

@@ -993,7 +993,7 @@ class LoginTest(ZulipTestCase):
def test_login_nonexistent_user(self) -> None:
result = self.login_with_return("xxx@zulip.com", "xxx")
self.assertEqual(result.status_code, 200)
self.assert_in_response("Please enter a correct email and password.", result)
self.assert_in_response("Incorrect email or password.", result)
self.assert_logged_in_user_id(None)
def test_login_wrong_subdomain(self) -> None:
@@ -1009,7 +1009,7 @@ class LoginTest(ZulipTestCase):
],
)
self.assertEqual(result.status_code, 200)
expected_error = "Please enter a correct email and password."
expected_error = "Incorrect email or password."
self.assert_in_response(expected_error, result)
self.assert_logged_in_user_id(None)