AbstractUser.php
211 throw new ValidationException($name, $value, $message->getText("The user requires a login name"));
214 throw new ValidationException($name, $value, $message->getText("The login '%0%' is not allowed",
220 throw new ValidationException($name, $value, $message->getText("The login '%0%' already exists", [$value]));
ValidationException signals an exception in validation.
Definition: ValidationException.php:18
verifyPassword($password)
Definition: AbstractUser.php:62
setPassword($password)
Definition: AbstractUser.php:48
setLogin($login)
Definition: AbstractUser.php:34
setConfig($config)
Definition: AbstractUser.php:97
The PasswordService class provides services for password handling.
Definition: PasswordService.php:18
setIsSuperUser($isSuperUser)
Definition: AbstractUser.php:83
static verify($password, $passwordHash)
Check if the given hash represents the given password.
Definition: PasswordService.php:45
getState()
Definition: DefaultPersistentObject.php:169
setIsActive($isActive)
Definition: AbstractUser.php:69
beforeUpdate()
Definition: AbstractUser.php:142
static getRoleConfigs()
Get the role configurations from the application configuration.
Definition: AbstractUser.php:236
beforeDelete()
Definition: AbstractUser.php:150
validateValue($name, $value)
Definition: AbstractUser.php:204
getPassword()
Definition: AbstractUser.php:55
hasRole($roleName)
Definition: AbstractUser.php:111
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
setRoleConfig()
Set the configuration of the currently associated role, if no configuration is set already.
Definition: AbstractUser.php:172
const USER_GROUP_NAME
Definition: AnonymousUser.php:22
Default implementation of a user that is persistent.
Definition: AbstractUser.php:25
getAddedNodes()
Get the object ids of the nodes that were added since the node was loaded.
Definition: Node.php:378
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
setValue($name, $value, $forceSet=false, $trackChange=true)
Definition: AbstractUser.php:193
isSuperUser()
Definition: AbstractUser.php:90
beforeInsert()
Definition: AbstractUser.php:135