掲示板

Updating User Lockout

thumbnail
15年前 に Daniel Breitner によって更新されました。

Updating User Lockout

Regular Member 投稿: 105 参加年月日: 08/07/16 最新の投稿
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
11年前 に Alex Bu によって更新されました。

RE: Updating User Lockout

New Member 投稿: 1 参加年月日: 12/09/18 最新の投稿
Same question!
thumbnail
11年前 に Bart Simpson によって更新されました。

RE: Updating User Lockout

Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
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.