Skip to content

Commit

Permalink
Merge pull request #196 from Progress1/dont_show_psw
Browse files Browse the repository at this point in the history
Don't show/send user password field to backend (report items..)
  • Loading branch information
milankowww authored Nov 29, 2023
2 parents 490af27 + c670934 commit b915724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/shared/schema/apikey.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Meta:


class ApiKeySchema(ApiKeyBaseSchema):
user = fields.Nested(UserSchemaBase)
user = fields.Nested(UserSchemaBase, exclude=("password",))

@post_load
def make(self, data, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion src/shared/shared/schema/report_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ReportItemAttributeSchema(ReportItemAttributeBaseSchema):
last_updated = fields.DateTime("%d.%m.%Y - %H:%M")
version = fields.Int()
current = fields.Bool()
user = fields.Nested(UserSchemaBase)
user = fields.Nested(UserSchemaBase, exclude=("password",))

@post_load
def make(self, data, **kwargs):
Expand Down

0 comments on commit b915724

Please sign in to comment.