diff --git a/config/auth.php b/config/auth.php index 541ed4c..17bebdf 100644 --- a/config/auth.php +++ b/config/auth.php @@ -167,7 +167,7 @@ */ 'geoip' => [ 'default' => env('PACKAGE_AUTH_GEOIP_DRIVER', null), - 'whitelist' => ['0.0.0.0', 'localhost'], + 'whitelist' => ['0.0.0.0', 'localhost', '192.168.10.115', '127.0.0.1'], 'drivers' => [ 'local' => [ 'class' => Local::class, diff --git a/src/Models/OneTimePin.php b/src/Models/OneTimePin.php index 9d2feb4..c04e28b 100644 --- a/src/Models/OneTimePin.php +++ b/src/Models/OneTimePin.php @@ -3,13 +3,11 @@ namespace Fintech\Auth\Models; use Fintech\Core\Abstracts\BaseModel; -use Fintech\Core\Traits\BlameableTrait; use OwenIt\Auditing\Contracts\Auditable; class OneTimePin extends BaseModel implements Auditable { use \OwenIt\Auditing\Auditable; - use BlameableTrait; /* |-------------------------------------------------------------------------- diff --git a/src/Repositories/Eloquent/OneTimePinRepository.php b/src/Repositories/Eloquent/OneTimePinRepository.php index 5008598..a824d65 100644 --- a/src/Repositories/Eloquent/OneTimePinRepository.php +++ b/src/Repositories/Eloquent/OneTimePinRepository.php @@ -57,7 +57,7 @@ public function create(string $authField, string $token) return $this->model; } } catch (Exception $exception) { - throw new Exception($exception->getMessage(), $exception->getCode(), $exception); + throw new Exception($exception->getMessage(), (int)$exception->getCode(), $exception); } return null;