Skip to content

Commit

Permalink
Add toString function for LDAP user
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilVanB committed Jan 11, 2024
1 parent edd0f8b commit dbd9472
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Security/User/LDAPUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ public function eraseCredentials()
public function getClass() {
return 'Mapbender\LDAPBundle\Security\User\LDAPUser';
}

public function __toString()
{
return $this->getUsername() ?: '';
}
}

0 comments on commit dbd9472

Please sign in to comment.