Fórumok
Add additional field in forgot_password.jsp in liferay
asdsad asdadasd, módosítva 8 év-val korábban
Add additional field in forgot_password.jsp in liferay
New Member Bejegyzések: 23 Csatlakozás dátuma: 2015.07.23. Legújabb bejegyzések
I created a hook and added one additional field in forgot_password.jsp. My problem is how to handle it.I read I should create an action and the action I should change is ForgotPasswordAction.java. I dont know much about struts and I am new to liferay. Do u know how to make this input in forgot_password.jsp works:
<aui:input label="<%= firstName %>" name="<%= firstNameParameter%>" size="30" type="text" value="<%= firstNameValue%>">
<aui:validator name="required" />
</aui:input>
I guess I should get the name from here:
User user2 = (User)request.getAttribute(WebKeys.FORGOT_PASSWORD_REMINDER_USER);
but what I should put in firstNameParameter? From where I should get it?
The point is to add a field to forgot_password.jsp to make the user write his first name in order to change his password. This is additional requirement to this page. Here is source of forgot_pasword.jsp: https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/portlet/login/forgot_password.jsp
<aui:input label="<%= firstName %>" name="<%= firstNameParameter%>" size="30" type="text" value="<%= firstNameValue%>">
<aui:validator name="required" />
</aui:input>
I guess I should get the name from here:
User user2 = (User)request.getAttribute(WebKeys.FORGOT_PASSWORD_REMINDER_USER);
but what I should put in firstNameParameter? From where I should get it?
The point is to add a field to forgot_password.jsp to make the user write his first name in order to change his password. This is additional requirement to this page. Here is source of forgot_pasword.jsp: https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/portlet/login/forgot_password.jsp
Olaf Kock, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
asdsad asdadasd, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
New Member Bejegyzések: 23 Csatlakozás dátuma: 2015.07.23. Legújabb bejegyzések
yes
Olaf Kock, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
so what's the point in starting two discussions without linking each other?
asdsad asdadasd, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
New Member Bejegyzések: 23 Csatlakozás dátuma: 2015.07.23. Legújabb bejegyzések
the point is to ask two different communities, get the best answers and make the solution
Tobias Liefke, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
Junior Member Bejegyzések: 78 Csatlakozás dátuma: 2012.11.23. Legújabb bejegyzések
Olaf Kock, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzésekTobias Liefke:
Why is cross-posting wrong
Thanks Tobias, I'll add this to my toolbox when linking crossposts in future.
Gurumurthy Godlaveeti, módosítva 8 év-val korábban
RE: Add additional field in forgot_password.jsp in liferay
Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzésekasdsad asdadasd:
I created a hook and added one additional field in forgot_password.jsp. My problem is how to handle it.I read I should create an action and the action I should change is ForgotPasswordAction.java. I dont know much about struts and I am new to liferay. Do u know how to make this input in forgot_password.jsp works:
The below link will help you on understanding the way to override the struts action.
https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/lp-6-1-dgen06-overriding-and-adding-struts-actions-0
asdsad asdadasd:
but what I should put in firstNameParameter? From where I should get it?
Use getter methods of ParamUtil to get data from request object.
Thanks
Guru