Browse Source

Update error message for breached passwords

This isn't always in the sidebar, so the previous message could be
confusing.
merge-requests/110/head
Deimos 5 years ago
parent
commit
7e96fb00b7
  1. 5
      tildes/tildes/schemas/user.py

5
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:

Loading…
Cancel
Save