One way to do it would be via a schedule job and hook
You could add a modelListener hook on update of user model. So whenever the password is created add an expando value of date time of it's change.
Create a custom portlet and in the liferay-portlet.xml add a
1<scheduler-entry>
sepcifying the cron expression when it should run. Provide your custom implementation that
1implements MessageListener
Inside the
1public void receive(Message arg0) throws MessageListenerException {
retrieve all users with the custom expando field and compare the lastlogin time. In case it's more then 24 hours. then using UserLocalService util udpate user and lock the account.
There could be some changes or different ways to do it, may be some better ones as well, but it's a start
Firmi prego dentro per inbandierare questo come inadeguato.