Fórum
UserPasswordException on updatePasswordWithUserId
Genar Codina, modificado 7 Anos atrás.
UserPasswordException on updatePasswordWithUserId
Junior Member Postagens: 28 Data de Entrada: 18/04/16 Postagens Recentes
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 7 Anos atrás.
RE: UserPasswordException on updatePasswordWithUserId (Resposta)
Expert Postagens: 348 Data de Entrada: 12/02/15 Postagens Recentes
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 7 Anos atrás.
RE: UserPasswordException on updatePasswordWithUserId
Junior Member Postagens: 28 Data de Entrada: 18/04/16 Postagens Recentes
Hi Javier,
You were totally right about using a valid session.
Thanks
You were totally right about using a valid session.
Thanks