@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | "client_secret" => $this->getClientSecret(), |
| 152 | 152 | "redirect_uri" => $this->getCallbackUrl(), |
| 153 | 153 | "code" => $code, |
| 154 | - "state" => $this->state |
|
| 154 | + "state" => $this->state |
|
| 155 | 155 | ); |
| 156 | 156 | |
| 157 | 157 | $this->execute($path, $options, 'POST'); |
@@ -344,9 +344,9 @@ discard block |
||
| 344 | 344 | * @access private |
| 345 | 345 | * @return string random string |
| 346 | 346 | */ |
| 347 | - private function generateState() { |
|
| 348 | - return substr(md5(rand()), 0, 7); |
|
| 349 | - } |
|
| 347 | + private function generateState() { |
|
| 348 | + return substr(md5(rand()), 0, 7); |
|
| 349 | + } |
|
| 350 | 350 | |
| 351 | 351 | /* |
| 352 | 352 | * Check whether api rate limit is reached or not |