controllers/Credential.php
protected function validateOauthCredential()
    {
        if (!$this->isPosted('save')) {
            return false;
        }

        $this->setSubmitted('credential');
        $this->validateElement(array('name' => $this->text('Name')), 'length', array(1, 255));
        $this->validateElement(array('data.id' => $this->text('Client ID')), 'length', array(1, 255));
        $this->validateElement(array('data.secret' => $this->text('Client secret')), 'length', array(1, 255));

        return !$this->hasErrors();
    }
protected function validateOauthCredential()
    {
        if (!$this->isPosted('save')) {
            return false;
        }

        $this->setSubmitted('credential');
        $this->validateElement(array('name' => $this->text('Name')), 'length', array(1, 255));
        $this->validateElement(array('data.id' => $this->text('Client ID')), 'length', array(1, 255));
        $this->validateElement(array('data.secret' => $this->text('Client secret')), 'length', array(1, 255));

        return !$this->hasErrors();
    }
protected function validateOauthCredential ( ) { if ( ! $ this -> isPosted ( 'save' ) ) { return false ; } $ this -> setSubmitted ( 'credential' ) ; $ this -> validateElement ( array ( 'name' => $ this -> text ( 'Name' ) ) , 'length' , array ( 1 , 255 ) ) ; $ this -> validateElement ( array ( 'data.id' => $ this -> text ( 'Client ID' ) ) , 'length' , array ( 1 , 255 ) ) ; $ this -> validateElement ( array ( 'data.secret' => $ this -> text ( 'Client secret' ) ) , 'length' , array ( 1 , 255 ) ) ; return ! $ this -> hasErrors ( ) ; }
Validates "OAuth" credential data
@return bool
Validates OAuth credential data