/** * Take arguments for running * * @param array $args $_REQUEST args * * @return boolean success flag * */ function prepare($args) { parent::prepare($args); // XXX: support "force_login" parameter like Twitter? (Forces the user to enter // their credentials to ensure the correct users account is authorized.) return true; }
/** * Take arguments for running * * @param array $args $_REQUEST args * * @return boolean success flag * */ function prepare($args) { parent::prepare($args); $this->callback = $this->arg('oauth_callback'); if (!empty($this->callback)) { common_debug("callback: {$this->callback}"); } return true; }
function prepare($args) { parent::prepare($args); $this->nickname = $this->trimmed('nickname'); $this->password = $this->arg('password'); $this->oauth_token = $this->arg('oauth_token'); $this->callback = $this->arg('oauth_callback'); $this->store = new ApiStatusNetOAuthDataStore(); $this->app = $this->store->getAppByRequestToken($this->oauth_token); return true; }