UpdateUserCommand
final class UpdateUserCommand (View source)
What a partial user update asks for: every field is null when the request left it alone. 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 carries after this update, or null when the request leaves it alone. Turning a flag off keeps an OIDC or SAML account as it is.
Whether the request sets 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|null $username = null, string|null $password = null, string|null $fullname = null, string|null $email = null, string|null $description = null, bool|null $active = null, int|null $permissionTemplateId = null, bool|null $useLdap = null, bool|null $useRemoteUser = null)
No description
AuthMethod|null
authMethodAfter(AuthMethod $current)
The sign-in method the account carries after this update, or null when the request leaves it alone. Turning a flag off keeps an OIDC or SAML account as it is.
bool
passwordGiven()
Whether the request sets a password; "0" is a password, an empty string is not.
UpdateUserCommand
withPassword(string $password)
The same request with the password replaced by its stored form (hash or LDAP placeholder).