protected function controlAccessCredentials()
    {
        if (empty($this->current_user['hash']) || empty($this->current_user['status'])) {
            $this->session->delete();
            $this->url->redirect('login');
        }

        if (!gplcart_string_equals($this->current_user['hash'], $this->user->getSession('hash'))) {
            $this->session->delete();
            $this->url->redirect('login');
        }

        if ($this->current_user['role_id'] != $this->user->getRoleId()) {
            $this->session->delete();
            $this->url->redirect('login');
        }
    }
protected function controlAccessCredentials()
    {
        if (empty($this->current_user['hash']) || empty($this->current_user['status'])) {
            $this->session->delete();
            $this->url->redirect('login');
        }

        if (!gplcart_string_equals($this->current_user['hash'], $this->user->getSession('hash'))) {
            $this->session->delete();
            $this->url->redirect('login');
        }

        if ($this->current_user['role_id'] != $this->user->getRoleId()) {
            $this->session->delete();
            $this->url->redirect('login');
        }
    }
protected function controlAccessCredentials ( ) { if ( empty ( $ this -> current_user [ 'hash' ] ) || empty ( $ this -> current_user [ 'status' ] ) ) { $ this -> session -> delete ( ) ; $ this -> url -> redirect ( 'login' ) ; } if ( ! gplcart_string_equals ( $ this -> current_user [ 'hash' ] , $ this -> user -> getSession ( 'hash' ) ) ) { $ this -> session -> delete ( ) ; $ this -> url -> redirect ( 'login' ) ; } if ( $ this -> current_user [ 'role_id' ] != $ this -> user -> getRoleId ( ) ) { $ this -> session -> delete ( ) ; $ this -> url -> redirect ( 'login' ) ; } }
Controls the current user credentials, such as status, role, password hash...
Controls the current user credentials such as status role password hash ...