mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix login service else none when no email
This commit is contained in:
committed by
Darío Lodeiros
parent
f2165d8286
commit
5bf8ee9e05
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user