Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46583

UserLocalServiceUtil.updateUser() does not issue email verification

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 3 weeks ago

                Packages

                Version Package
                6.2.0 CE GA1
                6.2.X EE
                7.0.0 M3