Skip to content

Commit 701ba31

Browse files
vpa24kedarkhaire
authored andcommitted
Acceptance link issue when the same mail address has different text cases
1 parent e22b578 commit 701ba31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/apigee_edge_teams/src/Entity/TeamInvitation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ public function setStatus(int $status): TeamInvitationInterface {
190190
* {@inheritdoc}
191191
*/
192192
public function getRecipient(): ?string {
193-
return $this->get('recipient')->value;
193+
$recipientEmail = $this->get('recipient')->value;;
194+
$user = user_load_by_mail($recipientEmail);
195+
return $user ? $user->getEmail() : $recipientEmail;
194196
}
195197

196198
/**

0 commit comments

Comments
 (0)