RedHen CRM overrides the normal user name token. It replaces the [user:name] token with RedHen contact name. I think, this is because of using features: "Connect users to Redhen contacts" or "Mirror RedHen Contact email to Drupal user". It's correct?

The outgoing mail is sending wrong data to the user: the user can't see their own Drupal user name. I can't find another token with normal Drupal user name.
This affects these mails:
- Welcome (new user created by administrator)
- Welcome (no approval required)
- Account activation

I'm using reaction rule to create contact on registration event mentioned here: #2008910: Add permission and ability to "create own redhen contact" Therefore I thinking first, it is not a bug. But since it occurs later too (Account activation), I ask you: is this a bug or a planed feature? Thank you!

Comments

levelos’s picture

Status: Active » Closed (works as designed)

RedHen implements hook_username_alter() to change the display of a username to match a linked contact's name. This does not effect the account name, which still works the same way and is available as a user token as always.

Note: We're considering adding a setting making the hook_username_alter() implementation optional.

levelos’s picture

That setting added with b35860850bc30494889443865a5f5edbe09cc41c.

bubu’s picture

I can confirm, this new "Display username as contact label" setting solves all mail problems mentioned above. Thank you!