setActive()
setActive(boolean $active) : \Charcoal\User\UserInterface
Parameters
boolean | $active | The active flag. |
Returns
\Charcoal\User\UserInterface —Chainable
User Interface, based on charcoal/object/content-interface.
setActive(boolean $active) : \Charcoal\User\UserInterface
boolean | $active | The active flag. |
Chainable
setPosition(integer $position) : \Charcoal\Object\Content
integer | $position | The position index. |
Chainable
setCreated(\DateTimeInterface|string|null $created) : \Charcoal\Object\Content
\DateTimeInterface|string|null | $created | The created date. |
Chainable
setCreatedBy(mixed $createdBy) : \Charcoal\Object\Content
mixed | $createdBy | The author, at object creation. |
Chainable
setLastModified(\DateTimeInterface|string|null $lastModified) : \Charcoal\Object\Content
\DateTimeInterface|string|null | $lastModified | The last modified date. |
Chainable
setLastModifiedBy(mixed $lastModifiedBy) : \Charcoal\Object\Content
mixed | $lastModifiedBy | The author, at object modificaition (update). |
Chainable
setUsername(string $username) : \Charcoal\User\UserInterface
Force a lowercase username
string | $username | The username (also the login name). |
Chainable
setEmail(string $email) : \Charcoal\User\UserInterface
string | The user email. |
Chainable
setPassword(string|null $password) : \Charcoal\User\UserInterface
string|null | $password | The user password. Encrypted in storage. |
Chainable
setLastLoginDate(string|\Charcoal\User\DateTime $ts) : \Charcoal\User\UserInterface
string|\Charcoal\User\DateTime | $ts | The last login date. |
Chainable
setLastLoginIp(string|integer|null $ip) : \Charcoal\User\UserInterface
string|integer|null | $ip | The last login IP address. |
Chainable
setLastPasswordDate(string|\Charcoal\User\DateTime $ts) : \Charcoal\User\UserInterface
string|\Charcoal\User\DateTime | $ts | The last password date. |
Chainable
setLastPasswordIp(integer|string|null $ip) : \Charcoal\User\UserInterface
integer|string|null | $ip | The last password IP. |
Chainable
setLoginToken(string $token) : \Charcoal\User\UserInterface
string | $token | The login token. |
Chainable
resetPassword(string $plainPassword) : \Charcoal\User\UserInterface
Reset the password.
Encrypt the password and re-save the object in the database. Also updates the last password date & ip.
string | $plainPassword | The plain (non-encrypted) password to reset to. |
Chainable