application\modules\social\components\services\Odnoklassniki::authenticate PHP Method

authenticate() public method

public authenticate ( )
    public function authenticate()
    {
        if (parent::authenticate()) {
            $this->setState(self::AUTH_DATA_KEY, ['email' => $this->getAttribute('email'), 'uid' => $this->getId(), 'service' => $this->getServiceName(), 'type' => $this->getServiceType()]);
            return true;
        }
        return false;
    }