[FIX] pms-api-rest: fix login service else none when no email

This commit is contained in:
miguelpadin
2023-05-31 17:51:57 +02:00
committed by Darío Lodeiros
parent f2165d8286
commit 5bf8ee9e05

View File

@@ -73,7 +73,7 @@ class PmsLoginService(Component):
expirationDate=timestamp_expire_in_a_min,
userId=user_record.id,
userName=user_record.name,
userEmail=user_record.email,
userEmail=user_record.email if user_record.email else None,
userPhone=user_record.phone if user_record.phone else None,
defaultPropertyId=user_record.pms_property_id.id,
defaultPropertyName=user_record.pms_property_id.name,