Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This Field Type validates and stores information about a user.
Name | Internal name | Expected input |
---|---|---|
User | ezuser | ignored |
PHP API Field Type
Value Object
APIProperty | Type | Description | Example |
---|---|---|---|
| boolean | Denotes if user has stored login. | true |
| int|string | Id of the Content corresponding to the user. | 42 |
| string | Username. | john |
| string | Users' email address. | john@smith.com |
| string | Hash of the user's password. | 1234567890abcdef |
| mixed | Algorithm user for generating password hash as a PASSWORD_HASH_* constant defined in eZ\Publish\Core\Repository\Values\User\User class. | User::PASSWORD_HASH_MD5_USER |
| int | Maximal number of concurrent logins. | 1000 |
Available password hash types
Constant | Description |
---|---|
| MD5 hash of the password, not recommended. |
| MD5 hash of the password and username. |
| MD5 hash of the password, username and site name. |
| Passwords are stored in plaintext, should not be used for real sites. |