fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
488 stars 301 forks source link

User's login ID displayed on her INDI page. #4403

Closed WGroleau closed 2 years ago

WGroleau commented 2 years ago

Only close relatives can see it, but sometimes close relatives don't get along. And sometimes (often) people create easy-to-guess passwords. In this case, the user had put her e-mail address in as user name.

I would prefer that not be displayed anywhere except in the user administration panel..

At the top of her INDI page was

Given I. Surname, birth year — (age ## years) — username@domain.tld

When I changed the user ID to GSurname, that appeared instead of the e-mail. I looked at the code for Individual.php and didn't see a fix.

fisharebest commented 2 years ago

The link is to an admin page, so we should only show it to admins (who already know everyone's email address).

WGroleau commented 2 years ago

Oh, that makes sense. I'd still prefer it not on the INDI page, but maybe other admins feel different? If so, perhaps as an option?

fisharebest commented 2 years ago

but maybe other admins feel different?

The feature was requested by several users - so I guess so.

This is easy to customise. It is a simple template - https://github.com/fisharebest/webtrees/blob/main/resources/views/individual-page-title.phtml - and there is an example module showing how to provide custom versions of templates.