forked from ezsystems/ezpublish-spi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-28917: As a Developer I want API to manipulate User Tokens (#2270)
* EZP-28917: As a Developer I want API to manipulate User Tokens * EZP-28917: Implemented integration tests for User Token APIs * EZP-28917: Implemented checking for user / password policy It allows Users w/o content / edit policy to update their password BC: If User has content / edit policy, but no user / password policy, updating password works as well
- Loading branch information
1 parent
47419b8
commit 43d8cd2
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
/** | ||
* File containing the UserTokenUpdateStruct class. | ||
* | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
namespace eZ\Publish\SPI\Persistence\User; | ||
|
||
use eZ\Publish\SPI\Persistence\ValueObject; | ||
|
||
/** | ||
* This update struct is used to update User Tokens (formerly known as User account keys). | ||
*/ | ||
class UserTokenUpdateStruct extends ValueObject | ||
{ | ||
/** | ||
* Hash key date for user account. | ||
* | ||
* @var string | ||
*/ | ||
public $hashKey; | ||
|
||
/** | ||
* Time to which the token is valid | ||
* Unix timestamp. | ||
* | ||
* @var int | ||
*/ | ||
public $time; | ||
|
||
/** | ||
* The user to whom the token belongs. | ||
* | ||
* @var int | ||
*/ | ||
public $userId; | ||
} |