ezsystems/ezpublish-kernel — pull request #434 by andrerom (2013-06-24 17:15:31+00:00)
Title: Load by login and email ezp 21095

This pull request enhances and closes #416.

PR adds the `loadByLogin` & `loadByMail` method to the `UserService`.

## Usage:
```php
$repository = $this->getRepository();
$userService = $repository->getUserService();

$userService->loadUserByLogin( 'admin' );
#=> \eZ\Publish\API\Repository\Values\User\User

$userService->loadUserByMail( 'nospam@ez.no' );
#=> \eZ\Publish\API\Repository\Values\User\User[]
```

## TODO
- [x] Change SPI to split loading login from email
- [x] Add API to loadByLogin
- [x] Add API to loadByMail
- [ ] Add tests