From 7e96fb00b716c46a8161e7829226af18e5c5ab72 Mon Sep 17 00:00:00 2001 From: Deimos Date: Sat, 9 May 2020 12:22:56 -0600 Subject: [PATCH] Update error message for breached passwords This isn't always in the sidebar, so the previous message could be confusing. --- tildes/tildes/schemas/user.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/schemas/user.py b/tildes/tildes/schemas/user.py index 2f889f9..ffe0686 100644 --- a/tildes/tildes/schemas/user.py +++ b/tildes/tildes/schemas/user.py @@ -98,7 +98,10 @@ class UserSchema(Schema): return if is_breached_password(value): - raise ValidationError("That password exists in a data breach (see sidebar)") + raise ValidationError( + "That password exists in a data breach (for more info, see " + '"password restrictions" below or in sidebar)' + ) @pre_load def username_trim_whitespace(self, data: dict, many: bool, partial: Any) -> dict: