Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.0 CE GA1, 6.1.10 EE GA1
-
Fix Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2, --Sprint 11/12, 6.2.0 CE M2
-
Component/s: Authentication
-
Environment:Liferay 6.1.0 CE GA1
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Similar Issues:
Description
In the password policies, you can set the reset ticket max age to eternal. This implies that the ticket send to the user for a password reset is always valid. However once a reset is requested, then the reset link send by mail, will not forward the user to the password reset screen and the ticket is removed from the database.
In the file /portal-web/html/potlet/password_policies_admin/edit_password_policy.jsp, the reset max age is set to 0.
This is calculated with in UserLocalServiceImpl class in the sendPassword method:
Date expirationDate = new Date(System.currentTimeMillis() + (passwordPolicy.getResetTicketMaxAge() * 1000)); (line 3222)
The expiration date is set to the current date. The link is send to the user. After clicking it, the link is processed in UpdatePasswordAction class, where the ticket is checked for expiration (line 121) where it will always fail because it is before the current datetime.

Committed on:
Portal 6.1.x CE GIT ID: a56304b35a9f07795fc259ee0a59294a98ab0ef9.
Portal 6.2.x GIT ID: 17d712db3713217ee9fd7d98b76b63053ae7aca0.