Foros de discusión
UserLocalServiceUtil.addUser() why do we have password1 password2 fields?
varun kashyap, modificado hace 11 años.
UserLocalServiceUtil.addUser() why do we have password1 password2 fields?
New Member Mensaje: 1 Fecha de incorporación: 19/11/12 Mensajes recientes
Hi
In UserLocalServiceUtil.addUser() method ,w e have two input parameters , pasword1 and password2 . What is the significance of this?
Do the two needs to be always same? I have seen few codes over internet where people have used different values.
What is the ideal solution here?
In UserLocalServiceUtil.addUser() method ,w e have two input parameters , pasword1 and password2 . What is the significance of this?
Do the two needs to be always same? I have seen few codes over internet where people have used different values.
What is the ideal solution here?
Hitoshi Ozawa, modificado hace 11 años.
RE: UserLocalServiceUtil.addUser() why do we have password1 password2 field
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
I think password1 is the password field in the password page while password2 is password confirmation.
Apoorva Prakash, modificado hace 11 años.
RE: UserLocalServiceUtil.addUser() why do we have password1 password2 field (Respuesta)
Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientes
Hi Varun,
You can see the following code snippet in validate() method (with some arguments) of class com.liferay.portal.security.pwd.PwdToolkitUtil:
This method is called from several places for the purpose of validation.
Hope this will help.
Thanks and Regards,
Apoorva Prakash
You can see the following code snippet in validate() method (with some arguments) of class com.liferay.portal.security.pwd.PwdToolkitUtil:
if (!password1.equals(password2)) {
throw new UserPasswordException(
UserPasswordException.PASSWORDS_DO_NOT_MATCH);
}
This method is called from several places for the purpose of validation.
Hope this will help.
Thanks and Regards,
Apoorva Prakash