Forums

Home » Liferay Portal » English » 3. Development »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rohit Chaudhari
overidng forgot password jsp page
September 28, 2011 6:42 AM
Answer

Rohit Chaudhari

Rank: Junior Member

Posts: 29

Join Date: September 8, 2011

Recent Posts

Hi All ,
I want to modify forgot password page.Scenario is,
when user clicks on forgot password link,it lands on forgot password page,there if user lefts email address field blank and
clicks on send new password,message shown to user is,
"You have entered invalid data.Please try again."

"The email address you requested is not registered in our database."
I want to have my own validation for that which will indicate user "information is required".How can I do it.If I want to create a hook for that how should i do it.I was successful with login hook,but facing problem for forgot password hook.Please help

Thanks And Regards,
Rohit Chaudhari
Leo Pratlong
RE: overidng forgot password jsp page
September 28, 2011 6:52 AM
Answer

Leo Pratlong

Rank: Expert

Posts: 350

Join Date: July 6, 2010

Recent Posts

You can override the JSP which display this page.
You have to build a hook: http://www.liferay.com/web/raymond.auge/blog/-/blogs/portal-hook-plugins?_33_redirect=%2Fweb%2Frauge%2Fblog
(follow the chapter about JSP hook).

When you have done that, you can override JSP by using their own path on the Liferay source.
For example:
you want to override /html/portlet/blogs/view.jsp and to add "HELLO WORLD" on the top of the page: you just have to create a /html/portlet/blogs/view.jsp in your hook. Copy/paste the original view.jsp code on your own file then add "HELLO WORLD" where you want.