Forums de discussion

Updating User Lockout

thumbnail
Daniel Breitner, modifié il y a 15 années.

Updating User Lockout

Regular Member Publications: 105 Date d'inscription: 16/07/08 Publications récentes
Hello all ...

I am trying to un-lock a locked user by clicking on a button.

Everything works fine ... except:

I am calling UserLocalServiceUtil.updateLockout and I get the unlocked user.
But the user is not updated in the database ... do I miss something, or do I have to update him manually ?

With kind regards

Daniel Breitner
Alex Bu, modifié il y a 11 années.

RE: Updating User Lockout

New Member Envoyer: 1 Date d'inscription: 18/09/12 Publications récentes
Same question!
thumbnail
Bart Simpson, modifié il y a 11 années.

RE: Updating User Lockout

Liferay Master Publications: 522 Date d'inscription: 29/08/11 Publications récentes
If you digg into the code you'll find that the model is updated but not merged with the current session.
userPersistence.update(user, false);

so you should update the user and merge it as well, using
com.liferay.portal.service.UserLocalServiceUtil.updateUser(User user, boolean merge) 


Hope it helps.