I built a portlet that can manage users in Liferay.
One of the options that I want to implement is the ability to lock and unlock users using password locks.
When I try to update the lock, it does nothing, I use the following:
UserLocalServiceUtil.updateLockoutById(userId, true)
This does not throw an exception or does not register an error, it seems that everything went well, but the database is not updated, and the user account does not change.
What's happening? Am I missing something? JavaDoc is pretty clear .
Note. I am not trying to deactivate the account, only to lock and unlock the user.
source
share