public function check_attempts(): bool
  {
    if ( !isset($this->cfg) ){
      return false;
    }

    //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts')));
    if ( isset($this->cfg['num_attempts']) && $this->cfg['num_attempts'] > $this->class_cfg['max_attempts'] ){
      return false;
    }
    return true;
  }
public function check_attempts(): bool
  {
    if ( !isset($this->cfg) ){
      return false;
    }

    //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts')));
    if ( isset($this->cfg['num_attempts']) && $this->cfg['num_attempts'] > $this->class_cfg['max_attempts'] ){
      return false;
    }
    return true;
  }
public function check_attempts ( ) : bool { if ( ! isset ( $ this -> cfg ) ) { return false ; } //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts'))); if ( isset ( $ this -> cfg [ 'num_attempts' ] ) && $ this -> cfg [ 'num_attempts' ] > $ this -> class_cfg [ 'max_attempts' ] ) { return false ; } return true ; }
Returns false if the max number of connections attempts has been reached
@return bool
Returns false if the max number of connections attempts has been reached