File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 52
52
' <a href="mailto:[email protected] ">contact us</a>.'
53
53
)
54
54
55
- INVALID_ACCOUNT_CREDENTIALS_ERROR = gettext_lazy ("Please enter a correct email and password." )
55
+ INVALID_ACCOUNT_CREDENTIALS_ERROR = gettext_lazy ("Incorrect email or password." )
56
56
DEACTIVATED_ACCOUNT_ERROR = gettext_lazy (
57
57
"Your account {username} has been deactivated."
58
58
" Please contact your organization administrator to reactivate it."
Original file line number Diff line number Diff line change @@ -856,7 +856,7 @@ def test_login_deactivated_mirror_dummy(self) -> None:
856
856
form = OurAuthenticationForm (request , payload )
857
857
with self .settings (AUTHENTICATION_BACKENDS = ("zproject.backends.EmailAuthBackend" ,)):
858
858
self .assertFalse (form .is_valid ())
859
- self .assertIn ("Please enter a correct email " , str (form .errors ))
859
+ self .assertIn ("Incorrect email or password. " , str (form .errors ))
860
860
861
861
# Test a non-mirror-dummy deactivated user.
862
862
user_profile .is_mirror_dummy = False
Original file line number Diff line number Diff line change @@ -993,7 +993,7 @@ def test_login_with_old_weak_password_after_hasher_change(self) -> None:
993
993
def test_login_nonexistent_user (self ) -> None :
994
994
result = self .
login_with_return (
"[email protected] " ,
"xxx" )
995
995
self .assertEqual (result .status_code , 200 )
996
- self .assert_in_response ("Please enter a correct email and password." , result )
996
+ self .assert_in_response ("Incorrect email or password." , result )
997
997
self .assert_logged_in_user_id (None )
998
998
999
999
def test_login_wrong_subdomain (self ) -> None :
@@ -1009,7 +1009,7 @@ def test_login_wrong_subdomain(self) -> None:
1009
1009
],
1010
1010
)
1011
1011
self .assertEqual (result .status_code , 200 )
1012
- expected_error = "Please enter a correct email and password."
1012
+ expected_error = "Incorrect email or password."
1013
1013
self .assert_in_response (expected_error , result )
1014
1014
self .assert_logged_in_user_id (None )
1015
1015
You can’t perform that action at this time.
0 commit comments