Skip to content

Commit

Permalink
use email when firstname or lastname not provided by IdP + ci tests o…
Browse files Browse the repository at this point in the history
…n top of itop 3.2
  • Loading branch information
odain-cbd committed Jan 20, 2025
1 parent fd89142 commit dc9f272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/HybridAuthLoginExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ private function DoUserProvisioning(string $sLoginMode)
}

// Create the person
$sFirstName = $oUserProfile->firstName;
$sLastName = $oUserProfile->lastName;
$sFirstName = $oUserProfile->firstName ?? $sEmail;
$sLastName = $oUserProfile->lastName ?? $sEmail;
$sOrganization = Config::GetDefaultOrg($sLoginMode);
$aAdditionalParams = array('phone' => $oUserProfile->phone);
IssueLog::Info("OpenID Person provisioning", HybridAuthLoginExtension::LOG_CHANNEL,
Expand Down
2 changes: 1 addition & 1 deletion tests/ci_description.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[itop]
;itop_branch: when not provided by default develop.
itop_branch=support/3.1
itop_branch=support/3.2

;itop_target_uri: use to launch ci from a factory target
;itop_target_uri="type=build&item=iTop%20Professional&version=3.1.2"
Expand Down

0 comments on commit dc9f272

Please sign in to comment.