Fórum

Use primary E-Mailaddress for user communication

thumbnail
bernd kopinits, modificado 7 Anos atrás.

Use primary E-Mailaddress for user communication

Junior Member Postagens: 28 Data de Entrada: 08/12/14 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Use primary E-Mailaddress for user communication

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Use primary E-Mailaddress for user communication

Junior Member Postagens: 28 Data de Entrada: 08/12/14 Postagens Recentes
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.