Fórum
Get user information in login.events.pre
Anil KC, modificado 11 Anos atrás.
Get user information in login.events.pre
Junior Member Postagens: 35 Data de Entrada: 21/12/12 Postagens Recentes
I have a login.events.pre action. I want to get user credentials and redirect to login.jsp of login portet with some message? Is it possible from login.events.pre ? How?
Subhash Pavuskar, modificado 11 Anos atrás.
RE: Get user information in login.events.pre
Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
Get username and password using
and in properties set
String username = themeDisplay.getUser().getScreenName();
String password = (String)request.getSession().getAttribute(WebKeys.USER_PASSWORD);
and in properties set
session.store.password=true
session.shared.attributes.excludes=
Jitendra Rajput, modificado 11 Anos atrás.
RE: Get user information in login.events.pre
Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens RecentesString userId = request.getRemoteUser();
String password = (String)session.getAttribute( "USER_PASSWORD" );
Make sure you update your portal-ext
session.store.password=true