-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: 6.1.30 EE GA3
-
Fix Version/s: 6.2.0 CE GA1, 6.2.X EE, 7.0.0 M3
-
Component/s: User Management
-
Labels:None
Precondition:
1) having an existing User
2) change user's email via UserLocalServiceUtil.updateUser()
3) go to Login portlet, password reset
4) enter username
5) nothing will happen
Expected: user should receive an email with a password reset link
Actual: nothing happen, user is not able to reset password. The user will not receive any more Email notification from Liferay.
Database: when changing email via Liferay's Control Panel a new verification email is sent to the user, and the "ticket" table has a new row. However when calling the Liferay Service "updateUser()" no ticket is generated into the "ticket" table, consequently the user cannot receive any email.
I have manually tried a workaround:
TicketLocalServiceUtil.addTicket(user.getCompanyId(), ticketClass, ticketPK, 1, user.getEmailAddress(), null, serviceContext);
However this is not reliable, not workign on different environments because I don't know what ticketClass/ticketPk I should use.