Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Yogesh Garg
Specific Users for multiple website on single instance
30 de Março de 2012 05:50
Resposta

Yogesh Garg

Ranking: Junior Member

Mensagens: 51

Data de entrada: 10 de Novembro de 2008

Mensagens recentes

Hi ,
I have Liferay 5.2.3
I have created two website for that liferay intance.

www.alpha.com
www.beta.com

I want to add 4 users to www.aplha.com and 4 users to www.beta.com. Also, I want to make sure that the users that I want to add to www.alpha.com can not access www.beta.com and vice versa.
Please someone let me know how can add these users.

I cannot add users when I login with www.alpha.com:8080.
Also, If I add a user to the general instance localhost:8080 with something like testuser1@alpha.com I can not login to it to the website www.alpha.com:8080.

Kindly explain how can I achieve this.

Thanks,
Yogesh
Amit Doshi
RE: Specific Users for multiple website on single instance
3 de Abril de 2012 04:36
Resposta

Amit Doshi

Ranking: Liferay Master

Mensagens: 543

Data de entrada: 29 de Dezembro de 2010

Mensagens recentes

Hi Yogesh,

For Two Different websites you might had made two different Communities.

So add four users in alpha and 4 users in beta community.

Make one loginPreAction hook and there you can check the community of that particular user.
If the particular user belong to that particular community then allow them to logged in or else directly make them logout.

And also by default don't allow guest user to see that community.

Let me know if any confusion.

Thanks & Regards,
Amit Doshi
Jignesh Vachhani
RE: Specific Users for multiple website on single instance
3 de Abril de 2012 05:46
Resposta

Jignesh Vachhani

Ranking: Liferay Master

Mensagens: 775

Data de entrada: 10 de Março de 2008

Mensagens recentes

Simple solution is, make community protected.
And assign specific users to those community. It means assign community member role to those members only.

I am not that much clear with your second point regarding login concern.
Please elaborate in details.

HTH
Jigs
Hitoshi Ozawa
RE: Specific Users for multiple website on single instance
3 de Abril de 2012 06:28
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

I want to add 4 users to www.aplha.com and 4 users to www.beta.com.


You try using communities if you don't mind having a common top page (guest page) and community extensions to your domain names.

If you want to have 2 different domain URLs without any extensions, you'll have to use 2 instances as you've already done.

I cannot add users when I login with www.alpha.com:8080.


Why do you want to login with port 80 AND port 8080? Different ports usually means different sites. If you want enable to login either with port 80 and port 8080,
you'll have to setup your HTTPD server to route both requests to the Liferay portal instance you've defined.