Fórumok
Updating User Lockout
Daniel Breitner, módosítva 15 év-val korábban
Updating User Lockout
Regular Member Bejegyzések: 105 Csatlakozás dátuma: 2008.07.16. Legújabb bejegyzések
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
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, módosítva 11 év-val korábban
RE: Updating User Lockout
New Member Bejegyzés: 1 Csatlakozás dátuma: 2012.09.18. Legújabb bejegyzések
Same question!
Bart Simpson, módosítva 11 év-val korábban
RE: Updating User Lockout
Liferay Master Bejegyzések: 522 Csatlakozás dátuma: 2011.08.29. Legújabb bejegyzések
If you digg into the code you'll find that the model is updated but not merged with the current session.
so you should update the user and merge it as well, using
Hope it helps.
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.