Loading Controllers/Cli/User.php +4 −3 Original line number Original line Diff line number Diff line Loading @@ -58,7 +58,8 @@ class User extends Cli\Controller implements Interfaces\CliControllerInterface * Example call: php ./cli.php User password_reset --username=nemofin --password=password123 * Example call: php ./cli.php User password_reset --username=nemofin --password=password123 * @return void * @return void */ */ public function password_reset() { public function password_reset() { try { try { if (!$this->getOpt('username') || !$this->getOpt('password')) { if (!$this->getOpt('username') || !$this->getOpt('password')) { throw new Exceptions\CliException('Missing username / password'); throw new Exceptions\CliException('Missing username / password'); Loading Loading
Controllers/Cli/User.php +4 −3 Original line number Original line Diff line number Diff line Loading @@ -58,7 +58,8 @@ class User extends Cli\Controller implements Interfaces\CliControllerInterface * Example call: php ./cli.php User password_reset --username=nemofin --password=password123 * Example call: php ./cli.php User password_reset --username=nemofin --password=password123 * @return void * @return void */ */ public function password_reset() { public function password_reset() { try { try { if (!$this->getOpt('username') || !$this->getOpt('password')) { if (!$this->getOpt('username') || !$this->getOpt('password')) { throw new Exceptions\CliException('Missing username / password'); throw new Exceptions\CliException('Missing username / password'); Loading