Foros de discusión
UserPasswordException on updatePasswordWithUserId
Genar Codina, modificado hace 7 años.
UserPasswordException on updatePasswordWithUserId
Junior Member Mensajes: 28 Fecha de incorporación: 18/04/16 Mensajes recientes
When I try to update the password using the method:
I get a
I suppose that:
1) password1 is the old password
2) password2 is the new password
3) passwordReset: I use always "true" (I think that it means: "change the password immediately").
However, I cannot complete successfully the function call because I get the error:
java.lang.SecurityException
Any suggestion will be appreciated.
Thanks in advance.
- (NSDictionary *)updatePasswordWithUserId:(long long)userId password1:(NSString *)password1 password2:(NSString *)password2 passwordReset:(BOOL)passwordReset error:(NSError **)error;
I get a
com.liferay.portal.UserPasswordException
I suppose that:
1) password1 is the old password
2) password2 is the new password
3) passwordReset: I use always "true" (I think that it means: "change the password immediately").
However, I cannot complete successfully the function call because I get the error:
java.lang.SecurityException
Any suggestion will be appreciated.
Thanks in advance.
Javier Gamarra, modificado hace 7 años.
RE: UserPasswordException on updatePasswordWithUserId (Respuesta)
Expert Mensajes: 348 Fecha de incorporación: 12/02/15 Mensajes recientes
You need a valid session (with an user and password) to be able to make the call, the error seems to imply that the user and password (of the session) are invalid.
Genar Codina, modificado hace 7 años.
RE: UserPasswordException on updatePasswordWithUserId
Junior Member Mensajes: 28 Fecha de incorporación: 18/04/16 Mensajes recientes
Hi Javier,
You were totally right about using a valid session.
Thanks
You were totally right about using a valid session.
Thanks