aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter_api/lib/twitter_api.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-04-19 21:57:17 -0400
committercash <cash.costello@gmail.com>2013-04-19 21:57:17 -0400
commit90ca61146bfd4eabaa6fce7506390f554fc4c44b (patch)
tree19080e8ab3e7636ce43be441cf9c711ca337995f /mod/twitter_api/lib/twitter_api.php
parent49ee96be289ce087462edf70a021f38ae87761a8 (diff)
downloadelgg-90ca61146bfd4eabaa6fce7506390f554fc4c44b.tar.gz
elgg-90ca61146bfd4eabaa6fce7506390f554fc4c44b.tar.bz2
Fixes #5361 existing Elgg user can link Twitter account with Elgg account
Diffstat (limited to 'mod/twitter_api/lib/twitter_api.php')
-rw-r--r--mod/twitter_api/lib/twitter_api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/twitter_api/lib/twitter_api.php b/mod/twitter_api/lib/twitter_api.php
index 8cb1b885e..a6d005287 100644
--- a/mod/twitter_api/lib/twitter_api.php
+++ b/mod/twitter_api/lib/twitter_api.php
@@ -274,7 +274,7 @@ function twitter_api_update_user_avatar($user, $file_location) {
* to establish session request tokens.
*/
function twitter_api_authorize() {
- $token = twitter_api_get_access_token();
+ $token = twitter_api_get_access_token(get_input('oauth_verifier'));
if (!isset($token['oauth_token']) || !isset($token['oauth_token_secret'])) {
register_error(elgg_echo('twitter_api:authorize:error'));
forward('settings/plugins', 'twitter_api');