General

  eZ Systems Website
  Editor documentation


  Developer documentation

  Back to the top

The documentation is moving!

We're moving our developer docs to Github and a new site.
The migration is still in progress, so please contact us in #documentation-contrib on eZ Community Slack if you have any questions or feedback.

This space will not be updated from now on except for critical fixes.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This Field Type validates and stores information about a user.

NameInternal nameExpected input
Userezuserignored

PHP API Field Type

Value Object

API

PropertyTypeDescriptionExample

hasStoredLogin

booleanDenotes if user has stored login.true

contentId

int|stringId of the Content corresponding to the user.42

login

stringUsername.john

email

stringUsers' email address.john@smith.com

passwordHash

stringHash of the user's password.1234567890abcdef

passwordHashType

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

maxLogin

intMaximal number of concurrent logins.1000

Available password hash types
ConstantDescription

eZ\Publish\Core\Repository\Values\User\User::PASSWORD_HASH_MD5_PASSWORD

MD5 hash of the password, not recommended.

eZ\Publish\Core\Repository\Values\User\User::PASSWORD_HASH_MD5_USER

MD5 hash of the password and username.

eZ\Publish\Core\Repository\Values\User\User::PASSWORD_HASH_MD5_SITE

MD5 hash of the password, username and site name.

eZ\Publish\Core\Repository\Values\User\User::PASSWORD_HASH_PLAINTEXT

Passwords are stored in plaintext, should not be used for real sites.