掲示板

Login page after password reset

9年前 に Supreet Kaur によって更新されました。

Login page after password reset

New Member 投稿: 11 参加年月日: 14/02/05 最新の投稿
hi,
I'm trying to redirect the user back to the login page on resetting their password after the first time they log in. After resetting their password after first time login the user should be redirected to the login page.
I tried changing the struts action path to
<action path="/portal/update_password" type="com.liferay.portal.action.UpdatePasswordAction">
<forward name="portal.update_password" path="/login/login" />
</action>

in an ext also tried making changes in the tiles-def-ext.xml
<definition name="portlet.ext" extends="portlet" />
<definition name="portal.update_password" extends="portal">
<put name="title" value="new-password" />
<put name="content" value="/portlet/login/login.jsp" />
</definition>

neither of them worked. Could anyone please suggest something?
Thanks,
Supreet
9年前 に Prateeksha Mandloi によって更新されました。

RE: Login page after password reset

Regular Member 投稿: 112 参加年月日: 14/02/05 最新の投稿
Hey guys please reply soon.

its urgent !
thumbnail
9年前 に Tomas Polesovsky によって更新されました。

RE: Login page after password reset

Liferay Master 投稿: 676 参加年月日: 09/02/13 最新の投稿
Hi,

I'm not sure I understand your needs.

Once user updates the password, (s)he is logged in and redirected.

I'd try to override UpdatePasswordAction using Hooks, where:
1, I'd call the original struts action and once user successfully updates the password,
2, I'd destroy current session (log out the user)
3, and send redirect to where I want