CreateUserCommand
final class CreateUserCommand (View source)
What a create-user request asks for, typed and independent of the wire format. The controllers build it from their own field names; the service hands it on to the repository with the password in its stored form.
Methods
No description
The sign-in method the account is created with; the service refuses both flags at once.
Whether the request carries a password; "0" is a password, an empty string is not.
The same request with the password replaced by its stored form (hash or LDAP placeholder).
Details
__construct(string $username, string|null $password, string $fullname = '', string $email = '', string $description = '', bool $active = true, int|null $permissionTemplateId = null, bool $useLdap = false, bool $useRemoteUser = false)
No description
AuthMethod
authMethod()
The sign-in method the account is created with; the service refuses both flags at once.
bool
passwordGiven()
Whether the request carries a password; "0" is a password, an empty string is not.
CreateUserCommand
withPassword(string $password)
The same request with the password replaced by its stored form (hash or LDAP placeholder).