mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms: add user image base64 format as login response
This commit is contained in:
committed by
Darío Lodeiros
parent
1b9d99da97
commit
59ccfd02cc
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user