[IMP] pms: add user image base64 format as login response

This commit is contained in:
miguelpadin
2022-02-15 15:16:30 +00:00
committed by Darío Lodeiros
parent 1b9d99da97
commit 59ccfd02cc
2 changed files with 14 additions and 3 deletions

View File

@@ -52,4 +52,12 @@ class PmsLoginService(Component):
key="pms_secret_key_example",
algorithm=jwt.ALGORITHMS.HS256,
)
return PmsApiRestUserOutput(token=token)
return PmsApiRestUserOutput(
token=token,
userId=user_record.id,
userName=user_record.name,
defaultPropertyId=user_record.pms_property_id.id,
defaultPropertyName=user_record.pms_property_id.name,
userImageBase64=user_record.partner_id.image_1024,
)