留言板

Use primary E-Mailaddress for user communication

thumbnail
bernd kopinits,修改在7 年前。

Use primary E-Mailaddress for user communication

Junior Member 帖子: 28 加入日期: 14-12-8 最近的帖子
Hello,
we're building a platform for multiple different organizations. It's possible that users register at more than one. Since the E-Mailaddress has to be unique in the system, we create a unique string for the E-Mailaddress field of the Liferay user and store the real address in the additional E-Mailaddresses with the flag primary. Now of course we want to use this address for the communication (reset password, ...) with the user. What's the best way to achieve this? Hook the UserLocalService and override every single method which ends in ...ByEmailAddress()? Override the UserPersistence? We thought about hooking the MailService and if the recipient's address matches the pattern of our unique string, we get the user for that one and set the address to the primary one of the additional ones. But opposed to every other Service, that one doesn't seem to have a Wrapper. And as always we'd rather start praying that the problem mysteriously disappears over night before we consider making an Ext-Plugin... Thanks in advance, Bernd
thumbnail
Samuel Kong,修改在7 年前。

RE: Use primary E-Mailaddress for user communication

Liferay Legend 帖子: 1902 加入日期: 08-3-10 最近的帖子
I suggest using a Virtual Instance for each organization. Users will be able to use the same email address on each instance and you won't need to worry about trying to change the e-mail stuff.
thumbnail
bernd kopinits,修改在7 年前。

RE: Use primary E-Mailaddress for user communication

Junior Member 帖子: 28 加入日期: 14-12-8 最近的帖子
Hello Samuel, thank you for your response. Unfortunately separating the organizations into different virtual hosts would also mean that we'd lose the possibility to share global content or maintain common site templates.