Details

      Description

      In eZ Publish legacy, via the `eZUser::setInformation()` method, it's possible to update the login field of a given user object. https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/classes/datatypes/ezuser/ezuser.php#L257-L278

      However, in the Platform API, there's no way of doing this. http://apidoc.ez.no/sami/trunk/NS/html/eZ/Publish/API/Repository/UserService.html

      To me it seems as though we should probably (by means of a userUpdateStruct?) possess the ability to change the login of a user (assuming that they supploy password).

        Activity

        Hide
        André Rømcke added a comment - - edited

        Possible incomplete list of todo's for PR:

        • API: add on UserUpdateStruct
        • API: add relevant API phpdoc on exceptions on updateUser, see createUser
        • API: add integration tests coverage eZ\Publish\API\Repository\Tests\UserServiceTest
        • Core\Repository: Add unit test coverage
        • Core\Repository: change implementation

        Then it might be SPI (eZ\Publish\SPI\Persistence\User\Handler) is already cable of handling this , otherwise:

        • Core\Persistence\Legacy: Add unit test coverage
        • Core\Persistence\Legacy: change implementation
        Show
        André Rømcke added a comment - - edited Possible incomplete list of todo's for PR: API: add on UserUpdateStruct API: add relevant API phpdoc on exceptions on updateUser , see createUser API: add integration tests coverage eZ\Publish\API\Repository\Tests\UserServiceTest Core\Repository: Add unit test coverage Core\Repository: change implementation Then it might be SPI ( eZ\Publish\SPI\Persistence\User\Handler ) is already cable of handling this , otherwise: Core\Persistence\Legacy: Add unit test coverage Core\Persistence\Legacy: change implementation

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex Wilson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: