public function getUserName() vs public function getUserDisplayName()

Permalink
In the class UserInfo located in concrete5/concrete/src/User/UserInfo.php there is both getUserName() and getUserDisplayName() which both return $this->entity->getUserName(); and i ask me why ?
For a news package i need to publish the author name and publishing the UserName, so the Login is not a good idea for security reasons.
Would it be usefull to change the getUserDisplayName() function to return a something like a userPublicName ?

agencecoteo
 
hutman replied on at Permalink Reply
hutman
I'm fairly certain that these two methods are both in there for backwards compatibility within the core.