Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
bala malasani
How to redirect disabled user to public page.
March 6, 2013 4:33 PM
Answer

bala malasani

Rank: New Member

Posts: 20

Join Date: September 25, 2012

Recent Posts

Hi All,

I need to redirect disabled user to some public page in liferay ,this redirection should be done during siteminder login. plz suggest me how to do this .
Bart Simpson
RE: How to redirect disabled user to public page.
March 7, 2013 1:34 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

You should be able to achieve this by starting with hooks on the property:
1
2    # Login event
3    #
4    login.events.pre=
5    login.events.post=

and provide you custom implementation where you can check if the user is disabled and then redirect.
siteminder login

What is that?
Pierre Morin
RE: How to redirect disabled user to public page.
February 6, 2014 7:18 AM
Answer

Pierre Morin

Rank: Junior Member

Posts: 70

Join Date: May 17, 2011

Recent Posts

Thank you, Bart, but it won't work, since the MainServlet.loginUser(...) method will call the "login.events.pre" classes AFTER testing if the remoteUser==null... but it'll be null everytime for a deactivated user.

I may be wrong, but it seems to work like this.

I think we are forced to use an EXT plugin.
Pierre Morin
RE: How to redirect disabled user to public page.
February 10, 2014 6:42 AM
Answer

Pierre Morin

Rank: Junior Member

Posts: 70

Join Date: May 17, 2011

Recent Posts

Hi !
I solved the problem by using "servlet.service.events.post=fr.mycompany.loginpostaction.hook.ServicePostAction".

See my answer on StackOverflow.