How to register the same user using email id in other sites as well
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
-
Use case: Creating multiple sites in a single instance of the portal. User1 is registered using the same email id on SiteA and SiteB. If User1 is logged in on SiteA and he/she should not able to open the SiteB without login again in SiteB.
Resolution
- Firstly, When User1 is logged in to the site, both sites will be visible to User1 as email addresses are reserved for the user at instance level rather than at site level. The same applied to User2.
- This is the default behavior of Liferay how it designed with single portal instance. The reported requirement may be achieved with custom development. As per Liferay's terminology, the site is a collection of the pages which can be associated with different users on any single portal instance.
- The user will have access to all the sites they are associated with. Liferay allows you to create multiple Portal Instances within single Liferay server deployment.
-
Secondly, If you are planning to achieve the reported requirement through different portal instance, then yes, this is possible as there will be using the feature of multitenancy [ie. through different portal instances]. Data for each portal instance are kept separate from every other portal instance.
-
Example test case which may help to achieve the desired outcome.
- Navigate to Control panel/ Configuration/ Virtual instances and Create 2 portal instances
-
Virtual instance:
-
Virtual instances:
- Create another user using the same email id test1@liferay.com in another virtual instance [risingfish.com:8080]
-
Observed behavior: Able to create a user using the same email id.
- Hit this instance URL [risingfish.com:8080] and log in using the created user test1@liferay.com
-
Observed behavior: Able to log in using the user1 credential test1@liferay.com
-
Test result: Similar to the reported use case is possible using multiple portal instances.
Did this article resolve your issue ?