Skip to content

Commit

Permalink
Merge pull request #888 from nextcloud/fix/gender-mapping-mistake
Browse files Browse the repository at this point in the history
Fix biography attr being used to set the account gender
  • Loading branch information
julien-nc authored Jun 21, 2024
2 parents 8527d46 + 1d871e2 commit 22e59fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ProvisioningService.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function provisionUser(string $tokenUserId, int $providerId, object $idTo
}

// Update the gender
$event = new AttributeMappedEvent(ProviderService::SETTING_MAPPING_BIOGRAPHY, $idTokenPayload, $biography);
$event = new AttributeMappedEvent(ProviderService::SETTING_MAPPING_GENDER, $idTokenPayload, $gender);
$this->eventDispatcher->dispatchTyped($event);
$this->logger->debug('Gender mapping event dispatched');
if ($event->hasValue()) {
Expand Down

0 comments on commit 22e59fb

Please sign in to comment.