File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if (! isset($_GET['oauth_verifier'])) {
61
61
header('Location: ' . $auth_url);
62
62
die();
63
63
64
- } else {
64
+ } elseif (! isset($_SESSION['oauth_verified'])) {
65
65
// gets the access token
66
66
$cb->setToken($_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);
67
67
$reply = $cb->oauth_accessToken(array(
@@ -70,6 +70,8 @@ if (! isset($_GET['oauth_verifier'])) {
70
70
// store the authenticated token, which may be different from the request token (!)
71
71
$_SESSION['oauth_token'] = $reply->oauth_token;
72
72
$_SESSION['oauth_token_secret'] = $reply->oauth_token_secret;
73
+ $cb->setToken($_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);
74
+ $_SESSION['oauth_verified'] = true;
73
75
}
74
76
```
75
77
You can’t perform that action at this time.
0 commit comments