Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17836

eZUserType->fromString should check RequireUniqueMail setting

    XMLWordPrintable

Details

    Description

      Hi there.

      Suppose a site where you have

      RequireUniqueMail=false
      

      in your site ini.

      trying to do some user import usign eZContentFunctions::createAndPublishObject, it happens that fromString method from eZUserDatatype has following piece of code

      if ( eZUser::fetchByName( $login ) || eZUser::fetchByEmail( $email ) )
                  return false;
      

      so, it will not work as expected. User data will not be stored properly because of that false.
      eZUser::requireUniqueEmail should be added to that check

      Steps to reproduce

      summary says it all

      Attachments

        Activity

          People

            andre1 andre1
            desorden desorden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: