Skip to content

Commit

Permalink
Fix translation of user add exceptions (#1591)
Browse files Browse the repository at this point in the history
Fix translation of user add exceptions, fixes #4395
  • Loading branch information
davisagli committed Mar 6, 2023
1 parent 31a18e1 commit 8f2f65e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/4395.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix translation of the error message for a password that is too short while
adding a user. [davisagli]
2 changes: 1 addition & 1 deletion src/plone/restapi/services/users/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def reply(self):
return dict(
error=dict(
type="MissingParameterError",
message=self.translate(str(e)),
message=self.translate(e.args[0]),
)
)

Expand Down

0 comments on commit 8f2f65e

Please sign in to comment.