public function addUser($email, $userID = null, $name = '', $password = null)
{
// user:add [--password-from-env] [--generate-password] [--display-name [DISPLAY-NAME]] [-g|--group [GROUP]] [--email EMAIL] [--] <uid>
+
$this->setArg(null, 'user:add');
if (null === $password) {
$this->setArg('generate-password');
$this->setArg('email', $email);
$this->setArg(null, $userID ?? $email);
$this->execute();
- $this->dd();
+ $this->debug();
+ }
+
+ public function disableUser($userID)
+ {
+ $this->setArg(null, 'user:disable');
+ $this->setArg(null, $userID);
+ $this->execute();
+ $this->debug();
+ }
+
+ public function enableUser($userID)
+ {
+ $this->setArg(null, 'user:enable');
+ $this->setArg(null, $userID);
+ $this->execute();
+ $this->debug();
}
}
\ No newline at end of file