feat: extended oauth2 user info and refactored authenticator
This commit is contained in:
@@ -14,10 +14,6 @@ class CrmAttributes
|
||||
{
|
||||
public ?array $selectionGroups = null;
|
||||
public ?array $crmActions = null;
|
||||
public bool $admin = false;
|
||||
public bool $manager = false;
|
||||
public bool $houseManager = false;
|
||||
public bool $teamer = false;
|
||||
public ?string $hotelCode = null;
|
||||
public array $hotelCodes = [];
|
||||
public array $roles = [];
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ class PersonalData
|
||||
public Communication $communication;
|
||||
|
||||
public array $roles = [];
|
||||
public array $hotelCodes = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
@@ -135,12 +136,13 @@ class PersonalData
|
||||
'title' => $this->title,
|
||||
'salutation' => $this->salutation,
|
||||
'gender' => $this->gender,
|
||||
'date_of_birth' => $this->dateOfBirth?->format('Y-m-d'),
|
||||
'nationality' => $this->nationality,
|
||||
'address' => [
|
||||
'street' => $this->address->street,
|
||||
'postcode' => $this->address->postCode,
|
||||
'city' => $this->address->city,
|
||||
'disctrict' => $this->address->district,
|
||||
'district' => $this->address->district,
|
||||
'country' => $this->address->country,
|
||||
],
|
||||
'communication' => [
|
||||
@@ -149,6 +151,7 @@ class PersonalData
|
||||
'phone' => $this->communication->phone,
|
||||
'newsletter' => $this->communication->newsletter,
|
||||
],
|
||||
'hotel_codes' => $this->hotelCodes,
|
||||
'height' => $this->height,
|
||||
'weight' => $this->weight,
|
||||
'shoe_size' => $this->shoeSize,
|
||||
|
||||
Reference in New Issue
Block a user