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;
        }
    }
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;
        }
    }
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 ; } }
Let's check the password
@param  string $pass Password
@return void
Let s check the password