protected function checkPassword($pass = '')
    {
        if (!hash_equals($this->pool->config->passphrase->value, $pass)) {
            --$this->authTries;

            if (0 === $this->authTries) {
                $this->disconnect();
            } else {
                $this->write('Wrong password. Please, try again: ');
            }
        } else {
            $this->writeln('You are authorized.');
            $this->auth = true;
        }
    }