Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1288

Cannot add or modify user without emailAddress

Details

    Description

      When the property: users.email.address.required=false, users will not be able to add multiple users with empty email addresses because of a unique index on email address. This has been resolved by adding a new property: users.email.address.auto.suffix This property contains the dummy email address that will be used when creating users with empty email addresses. This will allow the system to store users with empty addresses into the system without affecting the unique index.

      As a part of this fix, a new class has been created EmailAddressGenerator:

      public String generate(long companyId, long userId)
      public boolean isGenerated(String emailAddress)
      public boolean isFake(String emailAddress)

      Attachments

        Issue Links

          Activity

            People

              wesley.gong Wesley Gong
              wesley.gong Wesley Gong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.2 EE SP2 (5.2.6)