@@ -350,13 +350,13 @@ |
||
| 350 | 350 | $timestamp = $this->makeTimestamp($timestamp); |
| 351 | 351 | |
| 352 | 352 | return $this->findValidOTP( |
| 353 | - $secret, |
|
| 354 | - $key, |
|
| 355 | - $window, |
|
| 356 | - $this->makeStartingTimestamp($window, $timestamp, $oldTimestamp), |
|
| 357 | - $timestamp, |
|
| 358 | - $oldTimestamp |
|
| 359 | - ); |
|
| 353 | + $secret, |
|
| 354 | + $key, |
|
| 355 | + $window, |
|
| 356 | + $this->makeStartingTimestamp($window, $timestamp, $oldTimestamp), |
|
| 357 | + $timestamp, |
|
| 358 | + $oldTimestamp |
|
| 359 | + ); |
|
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | /** |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function getQRCodeGoogleUrl($company, $holder, $secret, $size = 200) |
| 27 | 27 | { |
| 28 | - if (! $this->allowInsecureCallToGoogleApis) { |
|
| 28 | + if (!$this->allowInsecureCallToGoogleApis) { |
|
| 29 | 29 | throw new Exception('It\'s not secure to send secret keys to Google Apis, you have to explicitly allow it by calling $google2fa->setAllowInsecureCallToGoogleApis(true).'); |
| 30 | 30 | } |
| 31 | 31 | |