Fórumok

Expiring a user's password

thumbnail
Vikas V, módosítva 11 év-val korábban

Expiring a user's password

Junior Member Bejegyzések: 83 Csatlakozás dátuma: 2011.09.28. Legújabb bejegyzések
Hi,

Am using Liferay 6.0 CE.

How can I expire a particular user's password after 24hrs (say) . I will identify the user whose password has to be expired based on some checks. How can I give this user as input to Liferay for password expiration?

Regards,
thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: Expiring a user's password

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Liferay will only handle expirations on a site level, not a user level.

That said, if you adjust the user's passwordModifiedDate so that it, plus 24 hours, matches the site's defined expiration policy, will have the expected result.
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Expiring a user's password

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
I think the question is how can I manually update passwordModifiedDate? I don't see it in any available interface.

There's a updatePasswordManually method, but that's to set the password.