diff --git a/src/Google2FA.php b/src/Google2FA.php index d639226..e9ff4e9 100644 --- a/src/Google2FA.php +++ b/src/Google2FA.php @@ -259,10 +259,10 @@ protected function updateCurrentAuthTime() public function verifyGoogle2FA($secret, $one_time_password) { return $this->verifyKey( - $secret, - $one_time_password, - $this->config('window'), - null, // $timestamp + $secret, + $one_time_password, + $this->config('window'), + null, // $timestamp $this->getOldTimestamp() ?: null ); } diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 3fb0374..963bac2 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -22,7 +22,8 @@ private function configurePaths() private function mergeConfig() { $this->mergeConfigFrom( - __DIR__.'/config/config.php', 'google2fa' + __DIR__.'/config/config.php', + 'google2fa' ); }