Skip to content

Commit 4e2d445

Browse files
committed
Update Password*Error.message to match admin
Match error messages in ChildMindInstitute/mindlogger-admin#2207.
1 parent a728412 commit 4e2d445

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/apps/users/errors.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,21 @@ class PasswordRecoveryKeyNotFound(NotFoundError):
1717

1818

1919
class PasswordHasSpacesError(ValidationError):
20-
message = _("Password should not contain whitespace characters.")
20+
message = _("Password must not contain spaces.")
2121

2222

2323
class PasswordContainsInvalidCharactersError(ValidationError):
24-
message = _("Password should not contain control characters.")
24+
message = _("Password must not contain control characters.")
2525

2626

2727
class PasswordTooShortError(ValidationError):
2828
message_is_template: bool = True
29-
message = _("Password should be at least {min_length} characters.")
29+
message = _("Password must be at least {chars} characters.")
3030

3131

3232
class PasswordInsufficientTypesError(ValidationError):
3333
message_is_template: bool = True
34-
message = _(
35-
"Password should contain at least {min_character_types} of: uppercase letter, lowercase letter, digit, symbol."
36-
)
34+
message = _("Password must contain at least {types} of: uppercase, lowercase, number, symbol")
3735

3836

3937
class PasswordTooCommonError(ValidationError): # Phase 2

0 commit comments

Comments
 (0)