Skip to the content
Documentation

User Field Type: comparison of v.1 vs v.3

No ratings yet

Versions Compared

Old Version 1

changes.mady.by.user Dominika Kurek

Saved on Apr 20, 2016

compared with

New Version Current

changes.mady.by.user André Rømcke

Saved on Jan 04, 2017

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

Table of contents:

Table of Contents
minLevel 2
Note
title User Field Type is read-only
In Exponential 5.x User Field Type is read-only. A dedicated API for handling users is available, for more details see eZ\Publish\API\Repository\UserService.

...

PHP API Field Type

Value Object

Property Type Description Example
hasStoredLogin boolean Denotes if user has stored login. true
contentId int|string Id of the Content corresponding to the user. 42
login string Username. john
email string Users' email address. [email protected]
passwordHash string Hash 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 int Maximal number of concurrent logins. 1000
Available password hash types
Constant Description
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.

 

Comments

Add a comment

Comments are read by a moderator before they appear.